On Mon, 31 Mar 2014 10:56:20 -0500, John Gilmore wrote:
>
>   IF ARG = NULL then RETURN(SYSNULL) ;  ELSE RETURN (ARG) ;
> 
Just curious; what ambiguous interpretations of

    IF ARG = NULL then RETURN SYSNULL  ;  ELSE RETURN  ARG  ;

... would be possible?  Rexx, which tends more toward reserved words than PL/I 
accepts:

user@MVS:143$ rexx "trace R; ARG = 42; IF ARG = NULL then RETURN SYSNULL  ;  
ELSE RETURN  ARG  ;"
     1 *-*  ARG = 42
       >>>    "42"
       *-*  IF ARG = NULL
       >>>    "0"
       *-*  ELSE
       *-*   RETURN  ARG
       >>>     "42"

-- gil

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

Reply via email to