multiple step cond code check with 'AND' condition
Select messages from
# through # FAQ
[/[Print]\]

MVSFORUMS.com -> Job Control Language(JCL)

#1: multiple step cond code check with 'AND' condition Author: tcurrier PostPosted: Thu Sep 16, 2010 11:33 am
    —
I understand that this cond code check for the return codes from 2 different steps is treated as an 'OR' condition, i.e. if STEP1.RC = 5 or
STEP2.RC = 9, then do not execute STEP3...

I can't seem to find how to code the cond parm as an 'AND' condition,
i.e. if STEP1.RC = 5 AND STEP2.RC = 9

Code:
//STEP3 EXEC PGM=IEFBR14,
//         COND=((5,EQ,STEP1),(9,EQ,STEP2))


Thanks for any help.

#2:  Author: Nic CloustonLocation: At Home PostPosted: Thu Sep 16, 2010 12:32 pm
    —
Use IF/THEN/ELSE condition code checking or change the operator (EQ) in the second check.

#3:  Author: tcurrier PostPosted: Thu Sep 16, 2010 7:42 pm
    —
I understand the IF/THEN/ELSE option, but I'm not sure what you mean by 'changing the EQ operator' in the second check....

#4:  Author: Nic CloustonLocation: At Home PostPosted: Thu Sep 16, 2010 11:31 pm
    —
I mean change the (9.EQ,STEP2) so that it will reflect what you want.

#5:  Author: tcurrier PostPosted: Fri Sep 17, 2010 6:48 am
    —
what I want is to keep the 2 parameters the same :
(same condition codes, same step referbacks)

(5,EQ,STEP1),(9,EQ,STEP2)

but have the 2 checks treated as 'AND' conditions, not 'OR' conditions.



MVSFORUMS.com -> Job Control Language(JCL)


output generated using printer-friendly topic mod. All times are GMT - 5 Hours

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group