The OP had an incorrect starting assumption that "the system" knows anything at 
all about SDWAMODN.
It does not. That is a field filled in by the recovery routine. The trio of 
fields SDWAMODN, SDWACSCT, SDWAREXN (often accessed as a group by the 
containing name of SDWARECP) contain whatever a recovery routine chose to place 
into them.

In the stated example, the system wouldn't know about "PGM2" at all. It 
wouldn't necessarily know about "PGM1" either, unless that was the name used 
for such a service as ATTACH, LINK, or XCTL.

If the abending program is running in problem state under a PRB or IRB then 
there is a possibility that RTM2EPA will be set.
For a PRB, it will be set to the value from CDENTPT if the RB has an associated 
CDE (RBCDE1).
For an IRB, it will be set to the value from RBEP.

For both of these cases there might be a module name. That is placed into 
SDWANAME.
For a PRB, it comes from CDNAME (if there is a CDE). For an IRB, it comes from 
whatever CSVQUERY comes up with, based on the RBEP value.

If SDWAEPA contains the EPA of PGM1, the odds are good that SDWANAME contains 
PGM1.

Peter Relson
z/OS Core Technology Design


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