Hi! This is your First post in our Forums! So please be sure to 1) Use meaningful and descriptive Topic Title 2) Try to post your query in the relevant forum category 3) Make sure your query is not already posted and solved in our forums, Use the Search facility and avoid Reposts! If you are following the above rules, delete this message and post your query here!
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
I have no idea what you're asking. Do you want the date to be Jun10 if the current system date is also June 10th? If not, where would this value come from?
In Production ,if we code any JCL , inside JCL i want to create a dataset with test.jun10 in that jcl & and also i want t0 get jun10 in sysin card to create the vsam datasets.
Yes your assumption is correct if today date is june 10th then it should take jun10.
Please let us know if any additional information should i need to provide in order to clear the description of question.
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
Well, obviously you'll need a program to convert a raw system date into the format you wish to use. It really doesn't matter what you use as long as it works for you.
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
You can write a program to generate the JCL you want and submit it into the internal reader, however there is no system data parameter available in JCL the way your JCL attempts to use it. And I don't believe you can pass symbolic parameters into IDCAMS to define the VSAM file, either.
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
Hello Karthik and welcome to the forum,
Quote:
And please let me is there any way to get the system date into jcl.
Amper-variables can be resolved in JCL, but not within instream data.
Instead of being in the DD *, you could create the control statement in a dataset with the date resolved as you want it and concatenate this dataset behind the instream data.
Usually for this kind of task, scheduler variables are used,
the scheduler while submitting the job will take care of variable substitution
why not speak with the scheduler support ??