I found something one can use from assembler to access environment variables in the LE Vendor Interfaces manual:
https://www.ibm.com/docs/en/zos/3.1.0?topic=clearenv-ceebenv Seems right on target with Dave’s original request. Peter From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Farley, Peter Sent: Tuesday, October 3, 2023 12:22 PM To: [email protected] Subject: Re: Assembler access to USS functions Unfortunately none of those callable services provides access to the POSIX environment variables table. The only references I can find to access to those values are in the getenv() / putenv() C function descriptions. To Dave C., I guess you could put in a call to IBM C/C++ support to ask them how one is supposed to access environment variables from assembler subroutines. I am assuming here that you will need to be running / compiling with POSIX “on” in order for that to work at all. Maybe if you are already running in a POSIX “on” environment there will be a control block chain you can chase to find the in-core table of values. Peter From: IBM Mainframe Discussion List <[email protected]> On Behalf Of John Sent: Tuesday, October 3, 2023 9:58 AM To: [email protected] Subject: Assembler access to USS functions Assembler callable services <https://www.ibm.com/docs/en/zos/3.1.0?topic=reference-callable-services-descriptions><https://www.ibm.com/docs/en/zos/3.1.0?topic=reference-callable-services-descriptions%3e%0d%0dIn> <https://www.ibm.com/docs/en/zos/3.1.0?topic=reference-callable-services-descriptions%3e%0d%0dIn> In<https://www.ibm.com/docs/en/zos/3.1.0?topic=reference-callable-services-descriptions%3e%0d%0dIn> response to David Cole's inquiry ... -- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
