There are three cases
1. address foo bar baz
Pass command bar baz to environment foo
address foo
bar baz
2. call bar baz
Invoke bar with parameter baz; return value optional
3. bar(baz) in an expression
Invoke bar with parameter baz; return value required
The last two cases are essentially the same. In the first case the value of baz
is passed as a single parameter even if it contains spaces or commas, but the
command processor for the environment may parse it into subparameters.
In the second and third cases baz must be a list of expressions, separated by
commas; there are no constrains on the values of those expressions.
z/OS 2.5 TSO/E REXX Reference, SA32-0972-5, contains details in Chapter 12.
TSO/E REXX programming services and Chapter 14. Language processor environments
--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of
Tony Harminc [[email protected]]
Sent: Thursday, October 27, 2022 3:08 PM
To: [email protected]
Subject: Re: XLC C/C++, __R1 and Register 0
On Thu, 27 Oct 2022 at 14:30, Charles Mills <[email protected]> wrote:
> It's being called from Rexx running under zOSMF so would TCBFSA apply?
>
No, I suppose not. I was thinking this was an EXEC PGM= thing, but on
reflection obviously not. But how does REXX invoke a program? (This is a
REXX Call statement?)
There's also the super annoying thing about REXX silently ignoring an R0
that isn't a valid EnvBlok pointer, and using some default. So not clear
where you would get that - IIRC REXX owns a TCB (STCB?) field that points
to some OCO anchor that would probably eventually yield the envbok.
Tony H.
----------------------------------------------------------------------
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