Capture IMS abend code 1041
Select messages from
# through # FAQ
[/[Print]\]

MVSFORUMS.com -> IMS

#1: Capture IMS abend code 1041 Author: misi01Location: Stockholm, Sweden PostPosted: Tue Aug 28, 2018 1:23 am
    —
Is this possible at all. I'm deliberately (mis)testing an IMS batch program that performs DL/1 database calls. We have a database called DAT22 which is defined with an index databases DAT220.

I'm running Xpediter and have deliberately avoided allocating the DAT220 file. When I try and do a GU on DAT22, I crash with a U1041 abend which I understand is a catch-all abend for anything being wrong.

I can use the aa snap command in Xpediter and scroll through the program variables where I see
Quote:

02 DIBSTAT X(2) AI
02 DIBSEGM X(8) DAT220

which is neat and basically tells me what is wrong.

Even neater (if possible) would be to snap this so the user/developer doesn't have to use Fault Analyzer - they simply review SYSOUT (or whatever and the answer is there instead).

Is this doable ?

#2:  Author: kolusuLocation: San Jose PostPosted: Tue Aug 28, 2018 10:25 am
    —
misi01,

Unless I am gravely mistaken, don't you have a in house abend routine that you can call in case of errors?

If you don't have an in house abend routine, then you can call language environment CEE3ABD and get a dump too

Code:



01 W-CEE3ABD                   PIC X(08) VALUE 'CEE3ABD'. 
01 W-ABEND-CODE                PIC S9(9) COMP VALUE 16.   
01 W-CLEAN-UP                  PIC S9(9) COMP VALUE 1.     

IF IMS-STATUS-CODE NE SPACES
   DISPLAY 'ERROR ENCOUNTERED ON IMS CALL'
   DISPLAY 'CHECK FOR MISSING PARMS/INDEXES'
   CALL W-CEE3ABD USING W-ABEND-CODE, W-CLEAN-UP
END-IF

#3:  Author: misi01Location: Stockholm, Sweden PostPosted: Wed Aug 29, 2018 2:43 am
    —
Yes, we do have in house abend routines (Fault Analyzer).

My thought ws possibly to be able to return to the line AFTER the DL1 call and review the status code. If it's an "invalid" one, THEN I snap and abend.

As it is now, I never return to my Cobol program after the invalid DL1 call, I simply abend immediately with a 1041 abend.



MVSFORUMS.com -> IMS


output generated using printer-friendly topic mod. All times are GMT - 5 Hours

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group