The below are the requirements:
1) In Unix i have a list of around 5 files in one directory. from that I need to pick one file and assign the file name to one variable in mainframe. Because i need the file name in mainframe for one of my control card in the proc.
$ ls -lrt
-rwxrwxrwx 1 IHEAL None 208547 May 19 02:29 ebcbs_daily_incoming_0
-rwxrwxrwx 1 IHEAL None 234991 May 19 02:29 ebcbs_daily_incoming_1
-rwxrwxrwx 1 IHEAL None 128013 May 19 02:29 ebcbs_daily_incoming_2
-rwxrwxrwx 1 IHEAL None 207946 May 19 02:29 ebcbs_daily_incoming_3
-rwxrwxrwx 1 IHEAL None 152654 May 19 02:29 ebcbs_daily_incoming_4
2) The Unix file need to be assigned in a particular place in control card.
Example: In a proc i have a step like the below..
//GETNASCO EXEC PGM=FTP,PARM='(EXIT=8',COND=(0,NE)
//SYSPRINT DD SYSOUT=*
//NETRC DD DSN=&NETRC(&ENCRBOX),DISP=SHR
//OUTPUT DD SYSOUT=*
//INPUT DD DSN=&PRODCARD(FTGN&FILEID),DISP=SHR
FTGN&FILEID this is my control card.. Inside the code is below..
get fttest.ft@e5591.PGP 'fttest.ft@e5591.PGP' (replace
rename dorcadpdrgesi bak/dorcadpdrgesi
"dorcadpdrgesi" is a Unix file name. Now this is acting as a static file. Now i want to change this as a dynamic file.
Could any one please help me on this..
If any doubt in the question let me know.. will make it more clear...