Re: Obtaining the Entry Point and Offset for an abending program in the SD WA

2021-01-10 Thread Seymour J Metz
What about the more complicated case where the program associated with the RB calls a loaded module, or a module located throut, e.g., the CVT? What about an ABEND in a PC routine? Is there any reason not to use CSVQUERY on the instruction address of the appropriate PSW field? -- Shmuel

Re: Obtaining the Entry Point and Offset for an abending program in the SD WA

2021-01-10 Thread Seymour J Metz
Why not use CSVQUERY? -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Joseph Reichman [reichman...@gmail.com] Sent: Sunday, January 10, 2021 3:21 PM To:

Re: Obtaining the Entry Point and Offset for an abending program in the SD WA

2021-01-10 Thread Joseph Reichman
You should pass the program name or rather CSECT name as a parm that way you can compare it to CDNAME if you say the program has multiple csect then quit possibly the CDE is minor CDE if so then CDXLMJP is pointer to the next CDE not xlst you can chain via CDXLMJP to get the load module CDE name

Re: Obtaining the Entry Point and Offset for an abending program in the SD WA

2021-01-10 Thread Joseph Reichman
You need to check the SDWANAME ( hope I spelled it right) I believe if the second 4 bytes is 0 i.e. you have a rb then you would need to obtain the entry point from CDE When the second 4 bytes is 0 then first 4 bytes is a RB check the corresponding RBCDE to see if CDENAME is you program name (if

Re: Obtaining the Entry Point and Offset for an abending program in the SD WA

2021-01-10 Thread Michael A. Shaw
On 1/9/2021 1:08 PM, esst...@juno.com wrote: . The Program runs as a standard Batch Job with Multiple CSECTS and has an RB. Why do I always get Zeroes in SDWAEPA ? . I don't see a field called "Offset" in the SDWA so I suspect that needs to be calculated, but with out an Entry Point Address

Re: Obtaining the Entry Point and Offset for an abending program in the SD WA

2021-01-10 Thread Peter Relson
>When I display SDWAEPA its always Zeroes. Consider checking the method by which you display SDWAEPA. The simplest case: -- Your program gets control via EXEC PGM= -- Your program sets ESTAE-type recovery (whether ESTAE, ESTAEX or whatever) -- the next instruction blows up (so that you know you

Obtaining the Entry Point and Offset for an abending program in the SD WA

2021-01-09 Thread esst...@juno.com
Hi, . I have an ESTAE Recovery program that basically does nothing. . I'm Trying to add some code to it. I have been able to externalized the following: SDWACMPC Completion Code SDWAEC1 LEFT HALF OF EC PSW SDWANXT1 TERMINATION ADDRESS . I'm am trying to locate two fields