The '//STEPA030 EXEC PGM=IEFBR14,COND=(7,GT)' NXEQ'S because 7 is GT the
CC=00 from '//STEP000 EXEC PGM=IEFBR14' (regardless of the CC=16 from
STEP010) - so STEPA030 *does not* execute.
 
If STEP000 is commented out, the only previous step is then STEP010 and
it has CC=16, and 7 is not GT than 16, so the COND=(7,GT) of STEPA030
does not apply, and STEPA030 therefore *does* execute.

 

On 15/07/2019 18:04, Paul Gilmartin wrote:
> On Mon, 15 Jul 2019 16:51:43 +0100, CM Poncelet wrote:
>
>> If '//STEP000 EXEC PGM=IEFBR14' is commented out, then 'STEPA030' will
>> execute with CC=00 instead of NXEQ'd.*
>> *
> I don't see that.  From the JCL Ref.:
>     If you omit stepname, the code you specify is compared to the return 
> codes from
>     all previous steps. If the return code issued by [*any*] of those 
> previous steps
>     causes the test condition to be satisfied, the system evaluates the COND 
> parameter
>     as true and bypasses the job step.
>
> There would still be the CC=16 from STEP010 bypassing STEPA030.
>
>> On 13/07/2019 20:11, Seymour J Metz wrote:
>>> I've been programming in assembler since 1960 and I find CON= to be 
>>> understandable but highly counterintuitive.
>>>
> Oh?
>
>>> ________________________________________
>>>> -----Original Message-----
>>>> From: Tony Sambataro
>>>> Sent: Friday, July 12, 2019 2:34 PM
>>>>
>>>> the jcl below should execute as far a cond code handling. I believe the 
>>>> two steps with COND= coded should both execute. But in my test only the 
>>>> one with a step name coded runs. Would appreciate other opinions.
>>>>
>>>> //STEP000  EXEC PGM=IEFBR14
>>>> //STEP010  EXEC PGM=IDCAMS
>>>> //SYSPRINT DD SYSOUT=X
>>>> //SYSIN    DD *
>>>> SET MAXCC=16
>>>> //STEPA030 EXEC PGM=IEFBR14,COND=(7,GT)
>>>> //STEPA040 EXEC PGM=IEFBR14,COND=(7,GT,STEP010)
>>>>
>>>> STEP000  IEFBR14  ------------------ R0000
>>>> STEP010  IDCAMS   ------------------ R0016
>>>> STEPA030 IEFBR14  ------------------ NXEQ
>>>> STEPA040 IEFBR14  ------------------ R0000
> -- gil
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
> .
>


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to