What's a good and very reliable way to write a step which sets its
return code to a particular non-zero value? (2 is ideal since
it's not even warning severity.)
Objective: I have a use for ternary logic that I can implement
by testing a JCL symbol against a known nonzero step return code,
as in:
// SET LEVEL=1 /* or 2, or 3. */
//*
//SETUP EXEC PGM=BPXWDYN,PARM='SH exit 2'
//*
//STEPA IF SETUP.RC LT &LEVEL THEN
...
//STEPB IF SETUP.RC EQ &LEVEL THEN
...
//STEPC IF SETUP.RC GT &LEVEL THEN
...
//STEPD IF SETUP.RC NE &LEVEL THEN
...
Any of the 6 inequalities could be useful.
BPXWDYN probably isn't ideal because I can't count on every user's
having an OMVS segment.
What about a HLASM step with an MNOTE 2,?
What about:
//SETUP EXEC PGM=IDCAMS /* Bizarre? */
//SYSIN DD *
SET MAXCC=2
CANCEL
Is there something more natural?
Thanks,
gil
----------------------------------------------------------------------
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