>But does not catch values that are not multiples of 4. I suppose it's >slightly more plausible that a future extension introduce RC=20 than that it >introduce RC=3.
ISPF functions do return RC=20. - Ted MacNEIL eamacn...@yahoo.ca Twitter: @TedMacNEIL -----Original Message----- From: Paul Gilmartin <paulgboul...@aim.com> Sender: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> Date: Wed, 8 May 2013 15:46:38 To: <IBM-MAIN@LISTSERV.UA.EDU> Reply-To: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> Subject: Re: Return codes On Wed, 8 May 2013 14:41:28 -0400, Gerhard Postpischil wrote: >While I prefer the branch table conjecture, I have a number of programs >that use a three-way branch (e.g., CH R15,=H'8') to save, what in the >good old days was expensive storage. As for range checking, my all-time >favorite is CL (e.g., CL R15,=F'16' / BH) that catches both negative and >excessive values. > But does not catch values that are not multiples of 4. I suppose it's slightly more plausible that a future extension introduce RC=20 than that it introduce RC=3. >IBM has complicated matters, starting with BPAM macros, by adding more >return codes. I would have preferred the old 0,4,8,12 paradigm, with R0 >set to a reason code. > And ISRSUPC SRCHFOR returns RC=0 if the target is not found; RC=1 if the target is found. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN