Re: Having a little difficulty with a REXX command LMOPEN

2023-02-08 Thread Paul Gorlinsky
Calling system programs from COBOL is doable provided you use the correct calling conventions. I OS we have two different ways of passing parms ... Generally see https://www.ibm.com/docs/en/cobol-zos/6.3?topic=statements-call-statement by Reference, content or value... Check out https://www

Re: Having a little difficulty with a REXX command LMOPEN

2023-02-08 Thread Steve Thompson
I am doing some utility routines for a product I'm working on. I have used ISPQRY in REXX code but that was under IKJEFT* (I have tried it with various combinations). So I thought I'd just stick a dynamic call to ISPQRY into a COBOL program and have it spit out what it got back. So, if the

Re: Having a little difficulty with a REXX command LMOPEN

2023-02-06 Thread Hobart Spitz
Just taking a guess here: Most ISPF services run at the same task level as the invoking user program. I believe that EDIT (and View) run at a different task level, and therefore may not have access to the same parameter pointers. OREXXMan Q: What do you call the residence of the ungulate with t

Re: Having a little difficulty with a REXX command LMOPEN

2023-02-06 Thread Seymour J Metz
ary 6, 2023 11:32 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Having a little difficulty with a REXX command LMOPEN On Mon, 6 Feb 2023 15:29:01 +, 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 &

Re: Having a little difficulty with a REXX command LMOPEN

2023-02-06 Thread Paul Gilmartin
On Mon, 6 Feb 2023 15:29:01 +, 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-IS

Re: Having a little difficulty with a REXX command LMOPEN

2023-02-06 Thread Seymour J Metz
Monday, February 6, 2023 9:53 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Having a little difficulty with a REXX command LMOPEN On Mon, 6 Feb 2023 04:48:09 +, Seymour J Metz wrote: >I would probably use ISPQRY, but your usage is shorter. > But does that require TSO? I wanted to be TSO

Re: Having a little difficulty with a REXX command LMOPEN

2023-02-06 Thread Lionel B. Dyck
- - - John Wooden -Original Message- From: IBM Mainframe Discussion List On Behalf Of Paul Gilmartin Sent: Monday, February 6, 2023 8:54 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Having a little difficulty with a REXX command LMOPEN On Mon, 6 Feb 2023 04:48:09 +, Seymour J Met

Re: Having a little difficulty with a REXX command LMOPEN

2023-02-06 Thread Paul Gilmartin
On Mon, 6 Feb 2023 04:48:09 +, 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"

Re: Having a little difficulty with a REXX command LMOPEN

2023-02-05 Thread Seymour J Metz
ct: Re: Having a little difficulty with a REXX command LMOPEN On Mon, 6 Feb 2023 01:33:47 +, Seymour J Metz wrote: >Are you sure you want to use say rather than, e.g., ADDRESS ISPEXEC DISPLAY >'MSG(ISRZ002)'? > Thrtr are scripts intended to be bimodal where I have dome: ADD

Re: Having a little difficulty with a REXX command LMOPEN

2023-02-05 Thread Paul Gilmartin
On Mon, 6 Feb 2023 01:33:47 +, Seymour J Metz wrote: >Are you sure you want to use say rather than, e.g., ADDRESS ISPEXEC DISPLAY >'MSG(ISRZ002)'? > Thrtr are scripts intended to be bimodal where I have dome: ADDRESS ISPEXEC DISPLAY 'MSG(ISRZ002)' IF RC<>0 THEN DO /* ISPF not active.

Re: Having a little difficulty with a REXX command LMOPEN

2023-02-05 Thread Seymour J Metz
4:59 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Having a little difficulty with a REXX command LMOPEN Here is my DO/END Loop. I am copying members from a previous Backup Library, back into my execution Library, using an input list to derive a MEMBER Name (I have named this string variable

Re: Having a little difficulty with a REXX command LMOPEN

2023-02-05 Thread Cameron Conacher
gt; Iterate > > /* signal evac */ > End > > Else Do > replFl = 'REPLACE' > "LMMOVE FROMID("Nbkp") TODATAID("Nlib")", > "FROMMEM("rComp") "replFl > If rc /= 0 Then Do > er

Re: Having a little difficulty with a REXX command LMOPEN

2023-02-05 Thread Lionel B. Dyck
iginal Message- From: IBM Mainframe Discussion List On Behalf Of Cameron Conacher Sent: Sunday, February 5, 2023 3:59 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Having a little difficulty with a REXX command LMOPEN Here is my DO/END Loop. I am copying members from a previous Backup Library

Re: Having a little difficulty with a REXX command LMOPEN

2023-02-05 Thread Cameron Conacher
Do rptRsn = 'Move from N-Backup library complete' End End call buildrpt "LMMLIST Dataid("Nbkp") OPTION(free)" "LMCLOSE Dataid("Nlib")" "LMFREE Dataid("Nbkp")" "LMFREE Dataid("Nlib&quo

Re: Having a little difficulty with a REXX command LMOPEN

2023-02-05 Thread Hobart Spitz
> signal evac > End > Else Do > rptRsn = 'Move from N-Backup library complete' > End >End >call buildrpt >"LMMLIST Dataid("Nbkp") OPTION(free)" >"LMCLOSE Dataid("Nlib")" >

Re: Having a little difficulty with a REXX command LMOPEN

2023-02-05 Thread Cameron Conacher
kup library complete' End End call buildrpt "LMMLIST Dataid("Nbkp") OPTION(free)" "LMCLOSE Dataid("Nlib")" "LMFREE Dataid("Nbkp")" "LMFREE Dataid("Nlib")" End Thanks …….Cameron From: IBM Mai

Re: Having a little difficulty with a REXX command LMOPEN

2023-02-05 Thread Hobart Spitz
Behalf > Of Lionel B. Dyck > Sent: Friday, February 3, 2023 8:39 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: [External] Re: Having a little difficulty with a REXX command > LMOPEN > > Here is a sample that I wrote awhile ago to better understand how lmcopy > works - hope

Re: Having a little difficulty with a REXX command LMOPEN

2023-02-05 Thread Cameron Conacher
...Cameron From: IBM Mainframe Discussion List On Behalf Of Lionel B. Dyck Sent: Friday, February 3, 2023 8:39 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: [External] Re: Having a little difficulty with a REXX command LMOPEN Here is a sample that I wrote awhile ago to better understand how lmcopy works

Having a little difficulty with a REXX command LMOPEN

2023-02-03 Thread Hobart Spitz
When you get the error, display zerrsm and zerrlm. We need to see your code. I think Seymour is asking the right question. On Fri, 3 Feb 2023, 07:19 Cameron Conacher, <03cfc59146bb-dmarc- requ...@listserv.ua.edu> wrote: > Good Morning, > I have a small REXX which essentially copies members

Re: Having a little difficulty with a REXX command LMOPEN

2023-02-03 Thread Seymour J Metz
; Sent: Friday, February 3, 2023 8:18 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Having a little difficulty with a REXX command LMOPEN Good Morning, I have a small REXX which essentially copies members of one PDSE to another. It iterates over members of the first PDSE and copies the members to the

Re: Having a little difficulty with a REXX command LMOPEN

2023-02-03 Thread Lionel B. Dyck
, reputation merely what others think you are.”   - - - John Wooden -Original Message- From: IBM Mainframe Discussion List On Behalf Of Cameron Conacher Sent: Friday, February 3, 2023 7:19 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Having a little difficulty with a REXX command LMOPEN Good Mo

Re: Having a little difficulty with a REXX command LMOPEN

2023-02-03 Thread Paul Gorlinsky
What functions are you using to copy the members… https://www.ibm.com/docs/en/zos/2.1.0?topic=services-lmopen-open-data-set There is a mention in the link that LMMOVE AND LMCOPY don’t require LMOPEN. Also are you following the LMOPEN with and LMCLOSE? You might need to create a list on mem

Having a little difficulty with a REXX command LMOPEN

2023-02-03 Thread Cameron Conacher
Good Morning, I have a small REXX which essentially copies members of one PDSE to another. It iterates over members of the first PDSE and copies the members to the second PDSE. After about eighty members are copied, my LMOPEN fails with a return code of 8. I checked the manual and a return code