FINDENVB is reliable. It's designed for languages that don't have access to R0. I use it in all my REXX command processors written in C++.

On 29/10/22 08:55, Charles Mills wrote:
I would guess that FINDENVB is no better, no different really, than passing 0 and letting 
IRXEXCOM take a guess. Am I wrong? The way I read the docs is that method will fail if 
the caller is using a Rexx "reentrant environment." Am I wrong?

Charles


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of David Crayford
Sent: Friday, October 28, 2022 4:31 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: XLC C/C++, __R1 and Register 0

There is a field in the LE Enclave Control Block called CEEEDB_R13_PARENT which is a 
pointer to a DSA containing the registers of the enclave parent. If you can be bothered. 
I would just use IRXINIT("FINDENVB ") to get the environment block as opposed 
to fiddling about with control blocks.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to