i need some quick help with an FTP parameter card. In the card, the destination filename is to have a date tag. (shown below)
PUT 'Source Mainframe DS' AUDT.20050608.CTL
This tag is to change every day. But that would mean changing the FTP card every day. What is the best way of doing this? (Other than by writing a COBOL/Rexx program?)
Can we use DD name in the FTP card by some means? (then we could simply do a &DATE thing in the JCL.
Joined: 26 Apr 2004 Posts: 4650 Location: Raleigh, NC, USA
Well, the first obvious choice is to name your dataset the same as the required target file (i.e. AUDT.20050608.CTL). However, I'm sure you realize that that's an invalid dataset name, so that option won't work.
In your post, you ask
Can we use DD name in the FTP card by some means?
The answer is, of course, yes:
>put //DD:DDNAME AUDT.20050608.CTL
but I fail to see where that will help. I do know that if you omit the target filename, FTP will use the DDNAME as the filename, but that's only up to 8 characters.
Some utility/program/REXX exec/CLIST will have to be used to generate the target filename with the date value. Your options here are wide open, depending on what you prefer to use.
Ok, the target filename may be modified to AUDT.D050608.CTL, but then will I be able to use DD name in the card to signify the target filename??
Programming will solve it of course, but my developer is complaining!!