View previous topic :: View next topic |
Author |
Message |
lal Beginner
Joined: 21 Oct 2003 Posts: 70 Topics: 25
|
Posted: Wed Jul 08, 2009 11:28 am Post subject: Dynamically change the dataset name |
|
|
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 |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Wed Jul 08, 2009 11:40 am Post subject: |
|
|
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 |
|
 |
lal Beginner
Joined: 21 Oct 2003 Posts: 70 Topics: 25
|
Posted: Wed Jul 08, 2009 1:21 pm Post subject: |
|
|
Thanks Superk,
Thanks,
Lal |
|
Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Wed Jul 08, 2009 3:43 pm Post subject: |
|
|
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 |
|
 |
expat Intermediate

Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Thu Jul 09, 2009 4:31 am Post subject: |
|
|
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 |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Thu Jul 09, 2009 8:14 am Post subject: |
|
|
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 |
|
 |
expat Intermediate

Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Thu Jul 09, 2009 8:54 am Post subject: |
|
|
Oooooooooooops, missed that bit  _________________ If it's true that we are here to help others,
then what exactly are the others here for ? |
|
Back to top |
|
 |
|
|