On Wed, Jan 10, 2018 at 11:42 AM, Paul Gilmartin < 0000000433f07816-dmarc-requ...@listserv.ua.edu> wrote:
> On Wed, 10 Jan 2018 11:26:39 -0600, John McKown wrote: > > >On Wed, Jan 10, 2018 at 11:19 AM, Thomas David Rivers wrote: > > > >> printf("Job name is %s\n", __jobname()); > >> > >That is a nice enhancement for the C language under z/OS. As a general > >rule, I _try_ to avoid any functions ... Another nice one might be > >__userid() to return the RACF id under which the process is running. > > > With the right header files, that's just a couple calls to getuid(); > getpwuid(); > Could be a bit "iffy" in the case of UID==0 if multiple RACF IDs have UID(0) specified. I know that a lot of shops run this way (BPXROOT, OMVSKERN, TCPIP, and maybe others). I checked and Dignus/C does have a __userid() and a __procstep() and __stepname() as well. The only reason I can think of to have these would be for "logging" purposes. > > -- gil > > -- I have a theory that it's impossible to prove anything, but I can't prove it. Maranatha! <>< John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN