Presumably R0  should be zero if not pointing to an ENVB.

________________________________________
From: IBM Mainframe Discussion List <[email protected]> on behalf of 
Paul Gilmartin <[email protected]>
Sent: Saturday, April 8, 2023 2:28 PM
To: [email protected]
Subject: Re: Just PDSE

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

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to