ISPQRY fails if it is not in LPA, linklist or tasklib, So you don't require that it work also in System REXX?
________________________________________ From: IBM Mainframe Discussion List <[email protected]> on behalf of Paul Gilmartin <[email protected]> Sent: Monday, February 6, 2023 11:32 AM To: [email protected] Subject: Re: Having a little difficulty with a REXX command LMOPEN On Mon, 6 Feb 2023 15:29:01 +0000, Seymour J Metz wrote: >It follows TSO command conventions, so in that sense it is a TSO command, but >it is in an ISPF library. > So 'ADDRESS TSO "ISPQRY"' fails if ISPF libraries are not allocated? Did you mean trimodal? By "bimodal" I meant ISPF vs. non-ISPF. There are numerous modes. I start some scripts with: ADDRESS ISREDIT MACRO X IF RC<>0 THEN PARSE ARG X I feel that ISPF designers show contempt for REXX in eschewing REXX facilitird such as PARSE ARG, and especially compound symbols. ________________________________________ From: Paul Gilmartin Sent: Monday, February 6, 2023 9:53 AM On Mon, 6 Feb 2023 04:48:09 +0000, Seymour J Metz wrote: >I would probably use ISPQRY, but your usage is shorter. > But does that require TSO? I wanted to be TSO-independent: z/OS 2.5 ISPF Services Guide IBM SC19-3626-50 Under TSO/E REXX that uses ADDRESS TSO you can use: "ISPQRY" (if it's a TSO command, shouldn't it be documented in the TSO COmmanf Ref.?) ________________________________________ From: Paul Gilmartin Sent: Sunday, February 5, 2023 9:02 PM > ... Thrtr are scripts intended to be bimodal where I have dome: ADDRESS ISPEXEC DISPLAY 'MSG(ISRZ002)' IF RC<>0 THEN DO /* ISPF not active. */ say errMsg1 say errMsg2; END -- gil ---------------------------------------------------------------------- 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
