> -----Original Message-----
> From: IBM Mainframe Discussion List On Behalf Of Steve Comstock
> 
> [ snip ]
> 
> When you specify a parameter on the EXEC statement that 
> invokes a proc, and do not specify a stepname, which is what 
> you have above, the parameter applies to all steps (except 
> for the PARM parameter, which doesn't apply here). So for 
> PROC3 the COND parameter is effectively COND=(1,LT) on each step.

Agreed.

> Now for the first step, 1 LT 0 is false, so the step runs 
> (wonderfulness of COND, eh?). Now if the first step produces 
> RC of 1, the next step should run (1 LT 1 is false, so step 
> runs) but if the first step produces RC > 1, then step
> 2 should not run (1 LT 2 is true, so step will not run). So 
> for step 1 producing RC of 1, I would expect subsequent steps 
> to run; but if any step produces RC > 1, then remaining steps 
> should flush.

Also agreed, but they don't.

Interestingly, the programmer changed the COND on the 3rd JOBstep to (0,LT),
and now the remaining procsteps flush when procstep 1 issues RC>1.

"Splain dat".  :-)

    -jc-

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to