Joined: 06 Jun 2008 Posts: 8214 Location: Dubuque, Iowa, USA
If your site has CA-7, you can use CARPROC to generate the date for the file name. If your site has a different scheduler, see if it can generate date fields.
Or, write a program to create the FTP commands with the date as part of the file name and run that program before running your FTP step, which would get input from the program's output.
Otherwise, the long way around would be to set up your JCL with step 1 being a Unix System Services shell script that creates the desired FTP commands, step 2 being an OGET to transfer the FTP commands to an MVS file name, and step 3 being the actual FTP execution, using as input the commands generated in step 1.
Since MVS systems do not have intrinsics for the date, these are pretty much your only options.