On Wed, 22 Feb 2017 12:43:19 -0600, John McKown wrote:
>
>> If only the designers (excuse me; perpetrators) of JCL had thought to
>> provide an ELSEIF statement, they could have much simplified this
>> (What century were they trained in?):
>
>​I can't answer that, but it could be argued that it is not __absolutely__
>necessary since the other constructs can emulate it, albeit ​clumsily
>
>//IF1  IF ...
>...
>//   ELSE
>//IF2  IF
>...
>//    ELSE
>//IF3  IF
>...
>//ENDIF3 ENDIF
>//ENDIF2 ENDIF
>//ENDIF1 ENDIF
>
No.  Where would you code the DEFAULT/OTHERWISE clause?

And they missed an opportunity to provide far better error
checking by failing to require that label fields on corresponding
IF, THEN, ELSE, and ENDIF match.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to