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 

Dynamic Dataset Name- Consisting of the Submission Date

 
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
ramu_mohan21
Beginner


Joined: 29 Jun 2004
Posts: 106
Topics: 41
Location: Bangalore, INDIA

PostPosted: Wed Oct 27, 2004 4:34 am    Post subject: Dynamic Dataset Name- Consisting of the Submission Date Reply with quote

Hi Board,
I have got a requirement that the Dataset name should consisting of the Submission Date - Like (TEST.EXAMPLE.DT041027). And also I don't want to pass the Date parameter by hardcoding (Or) Some other. Is there is any SYSTEM KEYWORD for DATE & TIME to be used in the JCL while its execution.
_________________
Best Regards,
----------------
Rammohan Pabba
Software Engineer
Back to top
View user's profile Send private message Send e-mail
meetrb
Beginner


Joined: 24 Nov 2003
Posts: 40
Topics: 15

PostPosted: Wed Oct 27, 2004 4:46 am    Post subject: Reply with quote

Hi,
Please search before posting.
A simple search revealed these topics:
http://www.mvsforums.com/helpboards/viewtopic.php?t=3041&highlight=date+dataset
http://www.mvsforums.com/helpboards/viewtopic.php?t=2101&highlight=date+dataset
http://www.mvsforums.com/helpboards/viewtopic.php?t=2353&highlight=date+dataset

Meetrb
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed Oct 27, 2004 4:56 am    Post subject: Reply with quote

There is no standard JCL parameters to deal with a date or time value, unless your job scheduling system uses its own set of variables to supply such information. Usually, if you wish to use logic for date or time during real-time execution, that process must be handled within a program, using a dynamic file allocation routine. Obviously, each language and/or environment has its own way of handling this function.

For a discussion of the COBOL dynamic allocation function BPXWDYN, please check here:
http://www.mvsforums.com/helpboards/viewtopic.php?t=2752

Your other option is to programmatically generate and submit JCL with pre-determined values for date and time. This can be accomplished using just about any method or language you can conceive of.

For examples of using the EZACFSM1 to generate JCL with date and time values, check these links:

http://www.mvsforums.com/helpboards/viewtopic.php?t=3041
http://www.mvsforums.com/helpboards/viewtopic.php?t=2101

For an example of using SORT, check this link:

http://www.mvsforums.com/helpboards/viewtopic.php?t=2973
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 -> 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