Page 1 of 1

Jcl without first step execution

PostPosted: Tue May 06, 2014 11:12 am
by inbasekarmani
Hi All,

One of the interviewer asked me,I have one catalog procedure which contains step1,2...upto step15.Now i want to run the steps which is inside the procedure, from step2 to step15 without using restart parameter,only i want to use COND parameter.I replied by using IEBEDIT,it can be easily handled.But interviewer wants only with COND parameter.


Thanks and Regards,
Inbasekar

Re: Jcl without first step execution

PostPosted: Tue May 06, 2014 4:21 pm
by Robert Sample
From the JCL Reference manual:
16.5.6.3 COND Parameter on the First Statement in a Job The system evaluates a COND parameter on the first EXEC statement in a job as false. However, you can use an IF statement before the first EXEC statement in a job to bypass the step. See Chapter 17, "IF/THEN/ELSE/ENDIF Statement Construct" in topic 17.0 for more information.

Re: Jcl without first step execution

PostPosted: Tue May 06, 2014 5:36 pm
by NicC
However you do it it is probably a bad idea as that first step should be producing something that is required in a later step. If it isn't then it should be in a job of its own.