> JSCBPGMN may have the name of the current program (see  IEZJSCB macro)
> 
> 
> *                             AREA  (MDC303)                   @
> JSCBPGMN DS    0CL8 -         JOB STEP PROGRAM NAME  (MDC304)  @
> JSCBECB1 DS    A -            ADDR OF CANCEL ECB WHILE         @
> *                             WAITING FOR A REGION (IEFSD363)  @
 
> CSVQUERY? Get the CDE address from the PRB?

Forget CDEs and forget JSCBs, because the program that received control
from the attach or link may very well NOT be the one in control when the
question is being asked. 

CSVQUERY allows you to specify (any) address as the search criteria. If
the address lies within a loaded module, CSVQUERY will tell you which
module that is. Relevant text from the book;

"Use CSVQUERY to obtain information about the attributes of a loaded
module residing in the job pack area (JPA) or the link pack area (LPA).
Specify the module you want information about, using an entry point
name, entry point token, or any address within the loaded module."

So make a label, specify its address for the INADDR parameter, issue a
CSVQUERY and you're done.

CC

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

Reply via email to