As I mentioned earlier on the list, I am reasonably sure that "environment variables" are a Language Environment thing, which is why they don't appear in the z/OS UNIX Assembler Services Guide. However, if you look at some services in the Asm Svcs Guide, you will see that they accept a envar table. I assume that this is so that the LE C/C++ library can pass environment variables to those kernel functions that use them - like for example "STEPLIB" for exec().
But an assembler language programmer would be free to write LE-conforming assembler code, and then the envar table could be there (in the CEEEDB I believe). Kirk Wolf Dovetailed Technologies http:// <http://dovetail.com>coztoolkit.com On Tue, Oct 3, 2023, at 11:22 AM, Farley, Peter wrote: > 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://urldefense.com/v3/__https://www.ibm.com/docs/en/zos/3.1.0?topic=reference-callable-services-descriptions__;!!Ebr-cpPeAnfNniQ8HSAI-g_K5b7VKg!O10BeWAIC3UZkcQoU-9M_WGLjXwRGfjAmcLHSH0yDYyOgtgx9eHmt8Pp100ICKEXa1UVgU9fKK4VUCSvfVSrEG1dxA$<https://urldefense.com/v3/__https:/www.ibm.com/docs/en/zos/3.1.0?topic=reference-callable-services-descriptions__;!!Ebr-cpPeAnfNniQ8HSAI-g_K5b7VKg!O10BeWAIC3UZkcQoU-9M_WGLjXwRGfjAmcLHSH0yDYyOgtgx9eHmt8Pp100ICKEXa1UVgU9fKK4VUCSvfVSrEG1dxA$>> > > > > > > > > In 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 > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
