IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to determine the offset of the program from abend


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
tomehta

New User


Joined: 18 Aug 2008
Posts: 98
Location: India

PostPosted: Tue Nov 17, 2009 10:56 pm
Reply with quote

Hi
i have a basic question. some times in the abend information we get the information
Code:
'compile unit offset +000055A4'
. The listing of the program has decimal no of lines for e.g 1,2,3,4,5,6,7... etc. How I can map the address in the abend to the listing of the program.
At times the abend gives the line no directly say 5514 , which maps to the line no in the listing of the code.

regards
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Tue Nov 17, 2009 11:16 pm
Reply with quote

Is this a CICS program (specifically COBOL) or is it COBOL Batch?

Bill
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Nov 17, 2009 11:45 pm
Reply with quote

If you change your compile options to LIST,NOOFFSET (the default is OFFSET,NOLIST) the compiler produces a pseudo Assembler listing that will allow you to map offsets directly to statements. The listing is longer but instead of interpolating which statement the offset refers to, you can know exactly.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Nov 18, 2009 12:20 am
Reply with quote

The following may help also -

www.ibmmainframes.com/viewtopic.php?p=214590&highlight=#214590

Bill
Back to top
View user's profile Send private message
tomehta

New User


Joined: 18 Aug 2008
Posts: 98
Location: India

PostPosted: Wed Nov 18, 2009 4:59 am
Reply with quote

Hi Bill,
Its a CICS online program.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Nov 18, 2009 5:17 am
Reply with quote

Once you've subtracted the ILC from the address of the NSI (both found in the PSW display), you must then subtract another X'26', which is the length of the CICS/COBOL stub.

Bill
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts ISAM and abend S03B JCL & VSAM 10
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top