I am trying to FTP 4 files thru JCL, the format of which in the SYSIN is:
Now the other system wants the file with Current date in YYYYMMDD. The HHMMSS is not mandatory and i use random numbers at present. What i do now is edit the file name in the JCL with current date and then FTP it.
I want to know if there is any FTP command or any other way i can get the current date and change the file names without doing it manually.
I have thought of a way in which i would write a eazytrieve in the first step to get the current date and change the file names and then FTP this files.
Please suggest is there any other way to do this.
//INPUT DD *
PUT 'USRID.AAAA.OUTFILE1' DEACT1.YYYYMMDD_HHMMSS.dat
PUT 'USRID.AAAA.OUTFILE2' ACT1.YYYYMMDD_HHMMSS.dat
PUT 'USRID.AAAA.OUTFILE3' DEACT2.YYYYMMDD_HHMM.dat
PUT 'USRID.AAAA.OUTFILE4' ACT2.YYYYMMDD_HHMM.dat
Joined: 06 Jun 2008 Posts: 8235 Location: Dubuque, Iowa, USA
1. If your site uses CA-7, the facility called CA-DRIVER or CARPROC can do this.
2. Write a program in the language of your choice to create the FTP commands.
3. Ask your site support group for help -- they know, better than anyone on an outside forum, what tools and facilities are installed at your site and there may well be something already installed to help you with this.