View previous topic :: View next topic |
Author |
Message |
jajularamesh Beginner
Joined: 14 Apr 2006 Posts: 87 Topics: 33
|
Posted: Mon Jun 25, 2007 4:41 am Post subject: create a dataset using current date as one of the qualifier |
|
|
I have a requirement to create a data set using current date. I have searched i got jcl's that uses internal reader's.
Is there any simple way to acheive this |
|
Back to top |
|
 |
jajularamesh Beginner
Joined: 14 Apr 2006 Posts: 87 Topics: 33
|
Posted: Mon Jun 25, 2007 5:15 am Post subject: |
|
|
i used this
//SORTOUT DD DSN=TPLAN01.FDACJCL.ACCOUNT.DT&YYMMDD,
--SORTOUT DD DSN=TPLAN01.FDACJCL.ACCOUNT.DT070625,
But i am getting error message saying invalid use of & in JCL
Regards,
Ramesh |
|
Back to top |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Mon Jun 25, 2007 5:15 am Post subject: |
|
|
jajularamseh wrote: | is there any simple way to acheive this |
what do you mean by 'simple'? The suggestions that you quote, generate the DSN and then immediately 'submit' the job to process the new DSN. - by the way, that is the purpose of using an internal reader - to submit the created JCL.
Many schedulers have dictionaries - substitution lists - that can be modified to provide JCL substitution parms. _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
 |
expat Intermediate

Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Tue Jun 26, 2007 11:47 am Post subject: |
|
|
Yes, and date functions are usually a part of them, giving you the option to use the exact date, at the date the job was actually submitted, or a cycle date - the date for which the dataset is scheduled to run.
i.e. Although the job runs on a Friday the date will that of Thursday as that job is part of the Thursday batch cycle. _________________ If it's true that we are here to help others,
then what exactly are the others here for ? |
|
Back to top |
|
 |
|
|