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 

Dynamically change the dataset name

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


Joined: 21 Oct 2003
Posts: 70
Topics: 25

PostPosted: Wed Jul 08, 2009 11:28 am    Post subject: Dynamically change the dataset name Reply with quote

Hi Friends,
I have 2 IEBGENER steps in the JCL which takes the backup of the files. My requirement is to automate this process and get the packed julian date from first record of some other KSDS VSAM file (date is located in column 10 for the length of 3bytes and the format is S9(05) COMP-3) and convert it into the gregorian date format and put that date at the end of these backup files.

My backup files will look like that
'TEST.FILE1.BACKUP.T&MMDD'
'TEST.FILE2.BACKUP.T&MMDD'


I thought of writing an JCL Insteam procedure and using symbolic parameter to pass the date to the parameter used in procedure. But my question is how should I pass the date as the parameter?

Thanks for your help in advance....

Thanks,
Lal
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed Jul 08, 2009 11:40 am    Post subject: Reply with quote

Write the date to a member of a PDS in the format of a valid JCL SET statement. In a subsequent job, INCLUDE that member, and then just use the same variable name that you specified in the SET statement.
Back to top
View user's profile Send private message
lal
Beginner


Joined: 21 Oct 2003
Posts: 70
Topics: 25

PostPosted: Wed Jul 08, 2009 1:21 pm    Post subject: Reply with quote

Thanks Superk,

Thanks,
Lal
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed Jul 08, 2009 3:43 pm    Post subject: Reply with quote

Have you considered any other alternatives? A process that renames the datasets (such as the IDCAMS ALTER command) also comes to mind.
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Thu Jul 09, 2009 4:31 am    Post subject: Reply with quote

Does you scheduler software not have date capabilities ?
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Jul 09, 2009 8:14 am    Post subject: Reply with quote

expat, don't forget that the O/P stated that the date value has to be read in from a VSAM dataset, so my presumption is that the solution has to revolve around some sort of program logic process.
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Thu Jul 09, 2009 8:54 am    Post subject: Reply with quote

Oooooooooooops, missed that bit bonk
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
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