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 

create a dataset using current date as one of the qualifier

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


Joined: 14 Apr 2006
Posts: 87
Topics: 33

PostPosted: Mon Jun 25, 2007 4:41 am    Post subject: create a dataset using current date as one of the qualifier Reply with quote

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
View user's profile Send private message
jajularamesh
Beginner


Joined: 14 Apr 2006
Posts: 87
Topics: 33

PostPosted: Mon Jun 25, 2007 5:15 am    Post subject: Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Mon Jun 25, 2007 5:15 am    Post subject: Reply with quote

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
View user's profile Send private message
expat
Intermediate


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

PostPosted: Tue Jun 26, 2007 11:47 am    Post subject: Reply with quote

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