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

How to find the line no. using OFFSET for SOC4 abend


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

New User


Joined: 20 Jul 2008
Posts: 19
Location: Schenactady, US

PostPosted: Thu Sep 18, 2008 5:48 pm
Reply with quote

I got a SOC4 abend for a program.How do I find the line no. where the error has occured using
1) OFFSET
2) PSW
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Sep 18, 2008 9:15 pm
Reply with quote

Hello,

A good place to start is with your peers and find out which diagnostic tools are available for use on your system.

Look at your link edit and make sure there are no missing module warnings.

Does this program use an internal sort?
Back to top
View user's profile Send private message
gvel19

New User


Joined: 20 Jul 2008
Posts: 19
Location: Schenactady, US

PostPosted: Fri Sep 19, 2008 2:27 pm
Reply with quote

I'm not getting any warnings in my Link edit. I would like to find the error that has occurred in a particular line number in the program using the OFFSET address that is present in the DUMP (or) PSW present in the DUMP.
Back to top
View user's profile Send private message
birdy K

New User


Joined: 05 Mar 2008
Posts: 72
Location: chennai

PostPosted: Fri Sep 19, 2008 2:43 pm
Reply with quote

When you get the offset, look the offset in compiled step. Offset entries will be there when that option is included in compilation. If the option is on , You can check the line number using offset in compiled job. The exact offset will not be there U have to relate with other offset also. Corrections are welcome.
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: Fri Sep 19, 2008 5:13 pm
Reply with quote

When you compile your program, ensure you use either OFFSET or LIST to get the offsets in the program of the various PROCEDURE DIVISION verbs. You can then use the compile output to correlate to the dump and find the statement in error.
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 Write line by line from two files DFSORT/ICETOOL 7
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts ISAM and abend S03B JCL & VSAM 10
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
No new posts Find the size of a PS file before rea... COBOL Programming 13
Search our Forums:

Back to Top