Page 1 of 1

If condition is given in job card, what about first step, wh

PostPosted: Fri Jun 25, 2010 5:35 pm
by arunkumar
If condition is given in job card, what about first step, whether the condition is checked for it or not? If checked then with which return code is it compared?

Re: If condition is given in job card, what about first step, wh

PostPosted: Fri Jun 25, 2010 5:37 pm
by expat
Return codes are checked against previously executed steps.
STEP1 has no previously executed steps, therefor has nothing to check against.

Re: If condition is given in job card, what about first step, wh

PostPosted: Fri Jun 25, 2010 5:41 pm
by Robert Sample
From the JCL Language Reference manual:
16.5.4 Location in the JCL

You can specify the COND parameter on any EXEC statement in the job. However, the system evaluates a COND parameter on the first EXEC statement in a job as false.