Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to determine the offset of the program from abend

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How to determine the offset of the program from abend
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Tue Nov 17, 2009 11:16 pm    Post subject: Reply to: How to determine the offset of the program from ab
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Tue Nov 17, 2009 11:45 pm    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Wed Nov 18, 2009 12:20 am    Post subject: Reply to: How to determine the offset of the program from ab
Reply with quote

The following may help also -

http://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    Post subject: Reply to: How to determine the offset of the program from ab
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Wed Nov 18, 2009 5:17 am    Post subject: Reply to: How to determine the offset of the program from ab
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts Determine Region with max bandwidth f... seahawk789 COBOL Programming 3 Mon Feb 27, 2017 8:26 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us