View previous topic :: View next topic |
Author |
Message |
tvssv Beginner
Joined: 11 Mar 2009 Posts: 58 Topics: 25
|
Posted: Wed Jun 08, 2022 1:10 pm Post subject: Apending Date to Dataset in FTP or JCL |
|
|
Hi,
My requirement is, I have a file ‘aaa.bbb.ccc’.
In put statement of FTP I have to add system/job run DATE in file name as below.
Code: |
PUT ‘aaa.bbb.ccc’ xxx.yyy.zzz.yyyymmdd.A.B
|
– yyyymmdd is system/job run date.
Is there any facility to add date in PUT command of FTP OR can we achieve this in any other method, i.e., jcl or sort
Please suggest.
Thanks _________________ Thanks
TVSSV |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
tvssv Beginner
Joined: 11 Mar 2009 Posts: 58 Topics: 25
|
Posted: Thu Jun 09, 2022 9:20 am Post subject: |
|
|
Thank You so much Kolusu.
It worked.
Code: |
//EXTRCT EXEC PGM=EZACFSM1
//SYSOUT DD SYSOUT=*
//SYSIN DD DATA,DLM=@@
PUT 'XXX.YYY.ZZZ' CORP.IATA.&LYR4.&LMON.&LDAY..B01.TRG
@@
|
Coded as above and got the below desired result.
Code: |
PUT 'XXX.YYY.ZZZ' CORP.IATA.20220609.B01.TRG
|
Thank You so much. _________________ Thanks
TVSSV |
|
Back to top |
|
|
|
|