Posted: Mon Feb 18, 2008 10:04 pm Post subject: Cond codes.
My question is about the cond codes.
//JOB3 JOB (A123), 'DAVID ZOWIE'
//STEP1 EXEC PGM= PROGRAM1
//STEP2 EXEC PGM= PROGRAM2
//STEP3 EXEC PGM= PROGRAM3,
// COND=(8,GE),(80,LE STEP1)
CAN ANY BODY EXPLAIN ME ABOUT THIS IN DETAIL.
I AM A LEARNER .IAM LITTLE BIT CONFUSED ABOUT THE COND CODES.
Joined: 27 Mar 2007 Posts: 65 Location: Troy, MI USA
Posted: Tue Feb 19, 2008 4:46 am Post subject:
Just to get this out of the way it?s COND=((8,GE),(80,LE,STEP1))
CONDition code processing is one of the strangest things IBM has done. You need to think ?backwards? . It is not if the COND is satisfied Execute the step, it?s if the COND is satisfied, Skip the step. And you need to read the COND from Right to Left. Not Left to Right like we read a book.
Now, if you have multiple COND you must understand that they are ?or? connectors. If this ?or? that condition is true, skip this step.
So what you have above says, that in STEP3, skip STEP3 if Any previous return code in this job was (Right to Left) GE to 8. Or skip STEP3 if STEP1 return code LE 80.
Well, given that you are going to skip STEP3 if STEP1 is LE 80 or ANY step GE 8 (including STEP1), I?d say that STEP3 will never run.
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