No book, no testing.
First job
Both steps will run (and end with RC=0).
Step B - because it is first step (no step A); first step runs
regardless of conditions.
Step C (second one) will run because it is "ELSE step" and condition was
false (I don't know how to express it in English).
Shall I explain RC=0 with IEFBR14 ? <vbg>
Second job
Now it's easy: B run, C flush.
Reasons are described above, now the condition is true.
Third job
A - run, first step always run
B - not run, condition not met (false)
C - run, see first job
OK, now my question: Do the words TRUE and FALSE really work ?
I don't remember...
--
Radoslaw Skorupka
Lodz, Poland
Paul Gilmartin wrote:
OK; who can answer the following:
o without reading the manual or testing
o with reading the manual only, and no testing:
What does the following job do:
//IF JOB etc.
//*
// IF ( FALSE ) THEN
//B EXEC PGM=IEFBR14
// ELSE
//C EXEC PGM=IEFBR14
// ENDIF
o Both steps B and C flush?
o Step B runs; step C flushes?
o Step B flushes; step C runs?
o Both steps B and C run?
Same set of questions for the following:
//IF JOB etc.
//*
// IF ( TRUE ) THEN
//B EXEC PGM=IEFBR14
// ELSE
//C EXEC PGM=IEFBR14
// ENDIF
And similarly for:
//IF JOB etc.
//*
// IF ( FALSE ) THEN
//A EXEC PGM=IEFBR14
//B EXEC PGM=IEFBR14
// ELSE
//C EXEC PGM=IEFBR14
// ENDIF
Why?
(Sorry to waste so much resource with all those IEFBR14s.)
-- 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