This job is running fine and giving me the desired output.
But why I have to use another job within the same job?????
What is the reason behind this????
Is there any way by which I can run the second part as just another step in the same jcl itself rather than doing it as a different job. So in the first step I can get the values for month and day and pass it on to the second step where it'll be used
Joined: 26 Apr 2004 Posts: 4650 Location: Raleigh, NC, USA
So in the first step I can get the values for month and day and pass it on to the second step where it'll be used
No, JCL doesn't work that way. As a job is submitted, it is checked for syntax, and any variables must be resolved before the job ever starts execution. Only programs are allowed dynamic state changes via either parameter input (PARM=) or from an external source (via an ACCEPT or READ).