On VSE we are able to build symbolic names for use within FTP commands. Here is an example: // DLBL WIREEX,'WIRE.PROD.MSAM.WIREEX',,VSAM,CAT=FTPCAT // EXEC FTPBATCH,SIZE=FTPBATCH,PARM='ID=06' SETVAR &PARM1 = 'wire_' SETVAR &PARM2 = SUBSTR(&CURDATE,1,6) SETVAR &PARM3 = '.txt' SETVAR &DESTFIL = &PARM1 + &PARM2 + &PARM3 lopen luser xxx lpass xxx OPEN OPSSERVER user xxx pass xxx put %WIREEX,ESDS &DESTFIL quit /*
Assuming today's date (April 9, 2009) the 'put' statement is resolved to put %WIREEX,ESDS wire_040909.txt (the %WIREEX thing is similar to z/OS's //DD:WIREEX) Any thoughts about how I can do something similar using the z/OS FTP client program? I'm guessing I'll have to have a predecessor step that executes maybe a Rexx program to build the FTP commands and write them to a dataset that is then used by FTP. Anyone have such a program? Thanks, Frank ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

