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
 

 

s0c7 abend not able to locate the offset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: s0c7 abend not able to locate the offset
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    Post subject: Re: s0c7 abend not able to locate the offset
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    Post subject:
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    Post subject: Doubt in making use of existing copy book???
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    Post subject:
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    Post subject:
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    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 BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm
No new posts S213-14 ABEND explantion Apurva Mehta JCL & VSAM 5 Thu Jul 07, 2016 10:56 pm
No new posts How to determine where is error in ab... jackzhang75 PL/I & Assembler 13 Fri Apr 15, 2016 2:01 am


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