Posted: Wed May 23, 2012 9:18 pm Post subject: how to set default value for any symbolic parameter.
Can anyone help me to resolve the following issue.
"How to set a default value for a symbolic parameter ?"
The JCL is something like this:
// .. JOB ....
//* here i have to give some value to file name before running this JCL
// set filename=
//step1 exec PGM1,...........
//FILE1 dd dsn=abcd.zyxw..&filename, ............
Now the case is , if before running this JCl if I am setting some value for filename, then FILE1 will refer to that dataset.
But if filename is blank then , I want a default value DDDDD to be set to it.
How to achieve this.. _________________ --There is no limit to learning
Thanks dbzTHEdinosauer and DikDude for explaining.
But i was actually looking for an option in JCL where we can handle this case when the filename is not given instead of commenting it out is there any other option.
Because when this JCL moves to production, I want the JCL itself to handle this scanerio instead of asking them to either give the filename or give the default value or comment it out. That's why am looking for any way JCL itself can handle it.
I know IF/ELSE will not work here, but theoritically I am looking for something like this
// If filename=' ' then
//want to set filename=DDDD here
Is there a way to achieve this objective. _________________ --There is no limit to learning
Joined: 24 Jul 2011 Posts: 651 Location: Down on the pig farm
Posted: Thu May 24, 2012 11:20 am Post subject:
In a production environment everything in your JCL should stay static - including filenames. If you need to override a name on a once-off then an override should be provided, properly signed off, and the appropriate person will put the one-off change into the run deck for that one run. _________________ Regards
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