On Fri, 21 Mar 2008 02:19:27 -0500, Support, DUNNIT SYSTEMS LTD. <[EMAIL PROTECTED]> wrote:
>...snipped... >>What is it you are really trying to accomplish? Why is it useful to >>know the parent's jobname? > >The program I'm working on sometimes depends on job name matching for its >logic. > >>One thing you could do is call BPX1GPP to get the parent's PID > >Can't go there. The program may receive control in a task above the initial job >step task (JST). Without knowing more about what you're doing it's hard to be sure, but I think you may want to rethink your dependency on job names. For one thing, don't forget that job names don't have to be unique. You could have multiple STCs with the same job name active at the same time, for example, or a TSO user and a batch job of the same name. So, trying to do anything across address spaces based on only the job name has a strong likelihood of getting you into trouble sometime, somewhere. Add that to the fact that you're running in an unusual part of the task structure (above the job step task) and the likelihood of problems gets even higher, I think. >... snipped... >Even there, I will only get back the parent's PID and may not always be able >to translate that to the parent's job name. Well, at least such and invocation >can retrieve the current process's USERID. Is that correct? If so, curious: >what's the difference between these 2: > >ODMVRUID DS F Process Real User Id >ODMVEUID DS F Process Effective User Id > First, are you wanting the MVS user ID (8 byte character string) or the UNIX UID (4 byte number)? You've just found the UNIX UIDs for the process there, or two of them at least. As for the difference, you may want to do some reading on UNIX if you have to ask that question, but a process starts with a UID that is both it's "real" UID and "effective" UIDs. The effective UID is used for most UNIX access checking decisions. While running it can make a temporary change to a different UID. That UID becomes its new effective UID, and is used for UNIX purposes until the process switches back to its real UID. By the way, I suggest using the MVS-OE mailing list rather than IBM-MAIN if you have detailed z/OS UNIX questions. -- Walt Farrell, CISSP IBM STSM, z/OS Security Design ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

