That behavior is expected, and useful, in any Rexx implementation. What was
unexpected was that SYSCALLS("ON") was the entire statement, rather than a
snippet.
--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of
Charles Mills [[email protected]]
Sent: Tuesday, June 28, 2022 4:41 PM
To: [email protected]
Subject: Re: Some questions on SYSCALL
> It issued the value returned by the SYSCALLS (probably '0') to the default
> command
> environment (perhaps 'MVS') which failed the command: "-3".
Well, yeah. Not my first Rexx program. The question is "is this to be expected
in a "legacy" batch environment?"
Charles
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf
Of Paul Gilmartin
Sent: Tuesday, June 28, 2022 1:22 PM
To: [email protected]
Subject: Re: Some questions on SYSCALL
On Tue, 28 Jun 2022 12:44:51 -0700, Charles Mills wrote:
>I was not super clear, was I? Per
>https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ibm.com%2Fdocs%2Fen%2Fzos%2F2.1.0%3Ftopic%3Denvironment-establishing-syscall&data=05%7C01%7Csmetz3%40gmu.edu%7C1fb4388d7cdd4bf1d74408da5946a81d%7C9e857255df574c47a0c00546460380cb%7C0%7C0%7C637920457259624729%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=N6qp0kHfpo6wn4rxzXdHcxoymS2skmsXVHD2HWcfMfQ%3D&reserved=0
> I coded
>
>SYSCALLS("ON")
>
>And got a -3. Subsequent SYSCALL "whatever" commands failed.
>
It issued the value returned by the SYSCALLS (probably '0') to the default
command
environment (perhaps 'MVS') which failed the command: "-3".
>ADDRESS SYSCALL "whatever" works; SYSCALL("ON") did not.
--
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
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN