On 2021-11-13 21:05, Paul Gilmartin wrote:
On Sat, 13 Nov 2021 13:54:15 -0600, Robert Prins wrote:
Replying via the website, so no context, apologies
Replying via the website, with context from clicking on the quotation
mark at the upper left of the text composition box, no apologies.
Use "impossible to match" if-then logic, this is what I use in one particular
job to just compile:
//SET LI=4095 (skip link)
//*SET LI=0 (link if compile is OK)
//*
//IFLINK IF RC <= 4 & RC >= &LI THEN
Your use of "&LI" is not "intended or supported" syntax.
The JCL Ref. says:
• You can specify symbolic parameters on IF/THEN/ELSE/ENDIF
statements provided that they resolve to one of the supported
relational-expression keywords. Any other symbolic parameters,
even if accepted by the system, are not intended or supported.
Refer to “Relational-expression keywords” on page 366.
Neither "0" nor "4095" is among the listed “Relational-expression
keywords”
It's fully supported, it has always been possible to use symbols for
return-codes, and for IF-THEN(_ELSE) at least since 1997, when I wrote the edit
macros to convert and parametrize production JCL using "COND" for our Y2K and
euro work.
Robert
--
Robert AH Prins
robert.ah.prins(a)gmail.com
The hitchhiking grandfather - https://prino.neocities.org/
Some REXX code for use on z/OS - https://prino.neocities.org/zOS/zOS-Tools.html
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN