There are two problems with that code. The first is that you have a WHEN 
followed by two statements; you need to put them inside a DO/END pair. The 
second is that you need to use == in order to distinguish '' from ' '.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


________________________________________
From: IBM Mainframe Discussion List <[email protected]> on behalf of 
Bill Giannelli <[email protected]>
Sent: Monday, September 30, 2019 2:48 PM
To: [email protected]
Subject: Re: Rexx calls versus branching

My statement is as follows:
SELECT
     WHEN ssid = "XXXX" THEN grp = "ZZZZ"

     WHEN ssid = " " THEN say 'subsystem not entered';
                          call code
OTHERWISE
          NOP
END

I thought it was falling though when SSID was blank.
But what I neglected was a null value for SSID.
Thanks
Bill

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

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

Reply via email to