Clicky
Skip to Content
Custom Search

Reply to comment

Anonymous

I am trying to ftp a file from mainframe to wintel server, I am using a JCL to transfer the file.

The requirement is to have name of the target file unique each time transfer occurs, for this I plan to append the date and time as suffix to the file name, so that the file name generated each time is unique.

The following is the JCL that I am using.

 

//FTPSTEP EXEC PGM=FTP
//SYSPRINT DD SYSOUT=*
//INPUT DD *
ip address
m/f user id
m/f password
put 'Source_file' Target.file.YYMMDD.HHMMSS
quit. /*
//OUTPUT DD SYSOUT=*

 

Can someone help me in meeting the above requirement?

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.