Gil,

But the check is "greater than", so based on Greg's earlier post of "bypass 
this step if", the equation becomes "bypass this step if 7 is greater than 16". 
 It isn't so the step will execute.  Definitely NOT intuitive...  It becomes a 
repeat of the COND checking in STEPA040.

Rex

-----Original Message-----
From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of 
Paul Gilmartin
Sent: Monday, July 15, 2019 12:05 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: [External] Re: JCL COND Parameter

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


The information contained in this message is confidential, protected from 
disclosure and may be legally privileged.  If the reader of this message is not 
the intended recipient or an employee or agent responsible for delivering this 
message to the intended recipient, you are hereby notified that any disclosure, 
distribution, copying, or any action taken or action omitted in reliance on it, 
is strictly prohibited and may be unlawful.  If you have received this 
communication in error, please notify us immediately by replying to this 
message and destroy the material in its entirety, whether in electronic or hard 
copy format.  Thank you.


----------------------------------------------------------------------
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