On Fri, 7 Apr 2023 21:47:54 -0400, Tony Harminc wrote:
>
>While looking at the help for CALL, I see - shades of another recent
>discussion - that there is now a NOENVB | PASSENVB option:
>
>NOENVB The NOENVB operand indicates that the REXX environment
> block (ENVBLOCK) address is not to be passed to the called
> program in register 0. This is the default.
>
>Yeah, but *what* ENVB does it pass if you override the default? The
>help doesn't say.
>
That faithfully paraphrases the omission in:
<https://www.ibm.com/docs/en/zos/2.5.0?topic=irxexcom-entry-specifications>:
Entry specifications
...
Register 0
Address of an environment block (optional)
I can cause R0 to contain the Address of an environment block with
L R0,=A(ENVBLOCK)
but since it's documented as "optional", I should simply be able to
omit that instruction and R0 will contain residual data. Is that OK?
It doesn't say.
--
gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN