MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Capture IMS abend code 1041

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> IMS
View previous topic :: View next topic  
Author Message
misi01
Advanced


Joined: 02 Dec 2002
Posts: 618
Topics: 172
Location: Stockholm, Sweden

PostPosted: Tue Aug 28, 2018 1:23 am    Post subject: Capture IMS abend code 1041 Reply with quote

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 ?
_________________
Michael
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12367
Topics: 75
Location: San Jose

PostPosted: Tue Aug 28, 2018 10:25 am    Post subject: Reply with quote

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

_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
misi01
Advanced


Joined: 02 Dec 2002
Posts: 618
Topics: 172
Location: Stockholm, Sweden

PostPosted: Wed Aug 29, 2018 2:43 am    Post subject: Reply with quote

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.
_________________
Michael
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> IMS All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group