Clicky
Skip to Content
Custom Search

Reply to comment

Anonymous
Use symbol translator to create the target file name

You can make use of symbol translator to create the target file name with date and time appended. For this
you first create the ftp input card using the symbol translator and then use the same ftp card in the
subsequent step to ftp the file.

 

//SYMBOLT  EXEC PGM=EZACFSM1                                       
//SYSIN    DD   *
put 'Source_file' Target.file.&LYYMMDD.&LHHMMSS
quit
/*
//SYSOUT   DD   DSN=&&TEMP,DISP=(,PASS),                     
//         RECFM=FB,LRECL=80
//*

//FTPSTEP EXEC PGM=FTP
//SYSPRINT DD SYSOUT=*
//INPUT DD *
ip address
m/f user id
m/f password
//         DD   DSN=&&TEMP,DISP=(OLD,DELETE)                         
/*
//OUTPUT DD SYSOUT=*

Reply

  • Allowed HTML tags:
      1. Lines and paragraphs break automatically.

    More information about formatting options

    CAPTCHA
    This question is for testing whether you are a human visitor and to prevent automated spam submissions.

Navigation

Click the +1 button  below to share it with your friends and colleagues

 

Share this if you liked it!

 

Disclaimer



Number of Registered users 713
Theme by Dr. Radut.