I want to FTP from mainframe to PC. We run the JCL to do that and this JOB should run every day. Is it possible to change the name of the file that I want to send to the PC everytime? For instance, I'd like to put the month/date/year in the file name.
//**********************************************************************
//* THIS STEP FTP THE REPORT *
//**********************************************************************
//NVBC31B EXEC FTP,
// COND=(0,NE,NVBC31A.D)
//SYSPRINT DD SYSOUT=*
//OUTPUT DD SYSOUT=*
//INPUT DD DSN=PTSO.FC500.NVLF01AA(NVM000AD),DISP=SHR
// DD *
CD PROMO_PAYMENT_BALANCING_REPORTS
CD PCRCREATION
PUT 'P1OPSBP.F9999.NVBF31AB' 'PCR CREATION REP.XLT'
quit
//*
So in the above example file name ' PCR CREATION REP.XLT ' should be created as PCR CREATION REP MM-DD-YYYY.XLT.
Software/Hardware used:
ASKED:
May 15, 2008 4:30 AM
UPDATED:
May 29, 2008 6:30 PM