z/OS 2.5 Using REXX and z/OS UNIX System Services, SA23-2283-50, p. 20, 
Specifying strings, at 
<https://www-40.ibm.com/servers/resourcelink/svc00100.nsf/pages/zOSV2R5sa232283/$file/bpxb600_v2r5.pdf#page=44>
 lists the options: unquoted value, quoted with ' or ", name in parentheses. 
"address SYSCALL open (myFileName)" and "address SYSCALL open" myFileName are 
valid;  
"SYSCALL open myFileName", "SYSCALL open" myFileNam" and  "address SYSCALL open 
myFileName"  are not.

For write you pass the file descriptor by value and the buffer by name.


--
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 5:42 PM
To: [email protected]
Subject: Re: Some questions on SYSCALL

I am still not quite understanding the usage of Rexx variables with SYSCALL.

If myFileName = "/u/myfile" then do I want to code

"SYSCALL open myFileName" or "SYSCALL open" myFileName  ?

In other words, does myFileName get passed by value, or does SYSCALL do an 
IRXEXCOM to find its value from its name?

Ditto for SYSCALL write. The example on 
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ibm.com%2Fdocs%2Fen%2Fzos%2F2.1.0%3Ftopic%3Dscd-write&amp;data=05%7C01%7Csmetz3%40gmu.edu%7C165cedf311eb4386aa8b08da594f2f5f%7C9e857255df574c47a0c00546460380cb%7C0%7C0%7C637920493898691111%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=Fsm5RX0E8qM%2FqazKBQWeyNCzPgmdNv0usbRLBeGAN8I%3D&amp;reserved=0
 shows

"write" fd "buf"

Which makes no sense to me at all. fd is passed by value but "buf" by name?

Charles


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Charles Mills
Sent: Tuesday, June 28, 2022 2:01 PM
To: [email protected]
Subject: Re: Some questions on SYSCALL

Rexx *documentation* is weird. <g> There is no mention of that in the 
documentation.

Well, I take that back. They show it in an if statement if SYSCALLS("ON") > 3 
then ... which is more or less the same thing.

The doc could be clearer, but I guess if all the IBM doc were clear we would 
not have IBM-MAIN. Thanks.

Charles


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Paul Gilmartin
Sent: Tuesday, June 28, 2022 1:55 PM
To: [email protected]
Subject: Re: Some questions on SYSCALL

On Tue, 28 Jun 2022 13:49:53 -0700, Charles Mills wrote:

>So are you saying I should be coding
>
>Foo = SYSCALLS("ON")
>
Either that or
  call SYSCALLS "ON"

----------------------------------------------------------------------
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

Reply via email to