Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2504
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: 8201
Location: Dubuque, Iowa, 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: 2504
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: 2504
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 The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 8 Wed Nov 15, 2017 4:27 pm
No new posts ASP3 ABEND IN CICS Vedant CICS 0 Fri Oct 20, 2017 3:18 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us