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

s0c7 abend not able to locate the offset


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

New User


Joined: 29 Dec 2005
Posts: 16
Location: mysore

PostPosted: Fri Jun 23, 2006 12:13 pm
Reply with quote

hi all,

i am getting S0C7 abend at compile unit offset +0000DDF8. but in the compiled version of the program the last offset is 00BC50. how to proceed.


thanks in advance
Back to top
View user's profile Send private message
pbgunasekar

New User


Joined: 28 May 2005
Posts: 26
Location: Chennai

PostPosted: Fri Jun 23, 2006 2:41 pm
Reply with quote

you can search the offset address between the highere and lower of abended offset address..........
Back to top
View user's profile Send private message
veeruspi

New User


Joined: 29 Dec 2005
Posts: 16
Location: mysore

PostPosted: Fri Jun 23, 2006 4:38 pm
Reply with quote

hi,
in the compiled version of the program, the last offset itself is 00BC50. so my offset nowhere lies nearer to that.
Back to top
View user's profile Send private message
M.Bhavani Prasad

New User


Joined: 10 Mar 2006
Posts: 6
Location: Hyderabad

PostPosted: Fri Jun 23, 2006 4:55 pm
Reply with quote

Hi all,



Please help out in the situation



Can I code



SELECT in-FILE

ASSIGN TO JARBI

ORGANIZATION INDEXED

ACCESS RANDOM

FILE STATUS WS-STATUS

RECORD KEY a2 THRU

A4.



Can I code ?thru? in this case

Because

My copy book is as

01 a.

02 a1

02 a2

02 a3

02 a4

Is this possible?

I cannot change the copy book
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Jun 24, 2006 8:20 pm
Reply with quote

Hi M.Bhavani Prasad,

Please start a new topic for your ques. You are causing confusion by putting it here. Use the "new topic" button at the top of the page to do this. Copy your ques to the page that appears and delete it here by using the "edit" button at the top right of your original post to erease the text.

Thanx and
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Jun 24, 2006 8:42 pm
Reply with quote

Hi veeruspi,

This usually happens if your pgm was link edited as part of another pgm.

I'll give an example using decimal values instead of hex to make it easier to understand (and explain icon_biggrin.gif ).

If the pgm that calls your module is 1250 bytes long and yours is 750 the length of the run unit is 2000 bytes. If you abend at offset 250 of YOUR pgm (you won't know that at this point), that translates to offset byte 1500 of the run unit. That's the offset you will see in the ABEND listing.

You need to find the offset into YOUR code. To get this offset, you must subtract the size of the calling pgm from the ABEND listing offset (1500 - 1250 = 250).

You will find the lengths and offsets to the beginning of each module of a run unit in the link edit map of the run unit.
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 ISAM and abend S03B JCL & VSAM 10
No new posts Abend S0C4 11 (Page Translation Excep... PL/I & Assembler 16
No new posts S0C7 - Field getting overlayed COBOL Programming 2
No new posts WER999A - UNSUCCESSFUL SORT 8ED U Ab... SYNCSORT 5
No new posts the system or user abend SF0F R=NULL COBOL Programming 0
Search our Forums:

Back to Top