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 

Date time Stamp in JCL for substitution.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
karunkallore
Beginner


Joined: 11 Dec 2004
Posts: 103
Topics: 39

PostPosted: Wed Apr 26, 2006 4:05 pm    Post subject: Date time Stamp in JCL for substitution. Reply with quote

Hi...

Is it possible to obtain the date time stamp in a JCL ( or proc ).

I have a member in the JCL that needs to start with 'B' then the date time stamp should be appended to it. For this member i.e 'B<date>' i have a need to FTP it to a server. So that is why the date time stamp is needed after 'B'. B is just a letter harcoded in the JCL.

For example in a JCL if the following is hardcoded Year=2006 then if i have a dataset in the JCL like TEST.Y.&year, then during execution time the name of the datset would be TEST.Y2006. Like that can i have the date time stamp substituted for the <date> field in 'B<date>'

Any help or lead will be greatly appreciated........

Thanks in advance,
Karun.
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Apr 26, 2006 5:25 pm    Post subject: Reply with quote

karunkallore,

Search for EZACFSM1 on this board and you will find many examples.

Hope this helps...

Cheers

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


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Thu Apr 27, 2006 1:10 am    Post subject: Reply with quote

This sounds like a good fit for a small Rexx program and not such a good fit for JCL. To do this with JCL (allocating to a ddname), requires some pretty unnatural acts (like EZACFSM1). In Rexx you just use the date() function with the appropriate parameter.
Back to top
View user's profile Send private message Visit poster's website
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Apr 27, 2006 5:24 am    Post subject: Reply with quote

I fail to see how the dataset name has any relevance for an FTP file copy process.
Back to top
View user's profile Send private message
karunkallore
Beginner


Joined: 11 Dec 2004
Posts: 103
Topics: 39

PostPosted: Thu Apr 27, 2006 9:42 pm    Post subject: Thank you ! Reply with quote

Hi Friends......

Thanks a lot for the advise. I will explore as suggested. With regards to the FTP pocess doubt raised by my dear friend here is the explanation. The member 'B<date>' will be used as a coin to tigger certain VB applications in a server where it is FTPed onto.. Also this 'B<date>' needs to be unique.

Thanks again a lot for the help........

Regards,
Karun
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) 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