In <076601cdd26d$7bc24590$7346d0b0$@mcn.org>, on 12/04/2012
   at 02:19 PM, Charles Mills <charl...@mcn.org> said:

>1. What would be the best way for a program running z/OS batch to
>answer the question "Am I the jobstep program, the PGM= program, 
>or was I LOADed and CALLed or ATTACHed (let's ignore XCTL for now) 
>by another program?

The TCBJSTCB field of the current TCB points to the J/S TCB. The
Initiator attaches PGM=foo as a jobstep.

>2. In addition, if the answer to (1.) is "another program," where
>would I find its entry point name?

Use CSVQUERY to identify the current program. 

>In other words, "who loaded me?" 

Those are two unrelated questions. There is no API to determine who
did the LOAD for a loaded module.

Do you also want to know who did a CALL or LINK?

-- 
     Shmuel (Seymour J.) Metz, SysProg and JOAT
     Atid/2        <http://patriot.net/~shmuel>
We don't care. We don't have to care, we're Congress.
(S877: The Shut up and Eat Your spam act of 2003)

----------------------------------------------------------------------
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