MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Apending Date to Dataset in FTP or JCL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
tvssv
Beginner


Joined: 11 Mar 2009
Posts: 58
Topics: 25

PostPosted: Wed Jun 08, 2022 1:10 pm    Post subject: Apending Date to Dataset in FTP or JCL Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12367
Topics: 75
Location: San Jose

PostPosted: Wed Jun 08, 2022 2:38 pm    Post subject: Reply with quote

tvssv,

Please search before posting. Check this

https://www.mvsforums.com/helpboards/viewtopic.php?t=12992&highlight=current+date
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tvssv
Beginner


Joined: 11 Mar 2009
Posts: 58
Topics: 25

PostPosted: Thu Jun 09, 2022 9:20 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group