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

Article: Resoving S0C7


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
EnjoyMF

New User


Joined: 27 May 2005
Posts: 88

PostPosted: Tue Jun 07, 2005 12:21 pm
Reply with quote

Hi Friends


i am hereby sending process to resolve S0c7
the same is used to resolve S0c4,S0c1 or other S0c

Hope this may help you

Regards
Prasad
Back to top
View user's profile Send private message
Kunal Roy

New User


Joined: 24 Jun 2005
Posts: 2

PostPosted: Fri Jun 24, 2005 8:46 am
Reply with quote

Hi All,

You can also use ICETOOL for S0C7 where you need to put the following statement

VERIFY ON 1 5 ZD

this references with your segment structure where your variables are Comp -3 or Comp.

Thanks,Kunal
Back to top
View user's profile Send private message
kotesh_cs634

Guest





PostPosted: Tue Jun 28, 2005 12:22 pm
Reply with quote

hi prasad,
Thak u for given information on soc7 and other resolvation..
could you plz give more information on abends what ever you told..
and send complete jcl for that because .. i am not clear ...completely

thnaks®ards
kotesh....
Back to top
vinotht

New User


Joined: 24 Jun 2005
Posts: 1
Location: Bangalore

PostPosted: Wed Jun 29, 2005 2:49 pm
Reply with quote

I dont know how to select the XREF option while compilation in Changeman. Can anyone explain me by giving a screenshot? Thanks in advance.
Back to top
View user's profile Send private message
Guest







PostPosted: Sat Aug 27, 2005 12:58 pm
Reply with quote

how to resolve S0C7 with the help of abend ADDRESS
Back to top
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Aug 28, 2005 10:11 pm
Reply with quote

Hi Guest,

First recompile your pgm w/the LIST,NOOFF options. I find the simplest way to do this is to preceed your pgm code with:

CBL LIST,NOOFF in col 8

When you re-run your pgm and it abends w/an 0C7 look at your sysmsg for the offset. You'll see a hex number like 06B4. This is the relative location in your pgm that contains the assembler instruction that caused the 0C7.

Now go to your compile listing. Now enter "f mvc" in the cmd line of your sdsf session. This brings you to the "list" part of the COBOL listing. Now enter "f 06B4". This brings you to the assembler instuction that caused the 0C7. If you look to the right on that print line you'll see data names from your pgm. One of them contains the data that caused the 0C7.

If you scroll up from there you'll see a cobol verb (e.g. ADD, COMPUTE, MOVE, etc.). That's the cobol verb that caused the 0C7. To the left of the verb you'll see the line# of the stmt. Use that to find the the actual stmt in your listing.

You can find the field in the dump, but that'll take too long to explain, even if I can remember it all. icon_rolleyes.gif

The next best thing id to DISPLAY the field(s) just before you execute the stmt causing the 0C7.

P.S. If failing pgm is statically called, determining the the offset into your pgm is a bit more involved.

In this case the overall offset is displayed in sysmsg, not the offset into your pgm. For example, if the calling module's length is 500 bytes and the 0C7 occured 200 bytes into your pgm, the offset shown in sysmsg will be 700 not 200.

To determine the offset into your pgm subtract the size of ALL load modules linkedited into the loadset before yours. Use the linkedit listing to determine those values.
Back to top
View user's profile Send private message
Guest







PostPosted: Thu Sep 01, 2005 11:50 am
Reply with quote

HI
CAN ANY BODY COULD U PLZ EXPLAIN ME ABOUT THIS
JESYMSG...
icon_question.gif
Back to top
learnmf

Active User


Joined: 14 Mar 2005
Posts: 123

PostPosted: Sat Sep 10, 2005 4:58 pm
Reply with quote

Hi Friends,
I am using endevor for ompiling my program.

While submitting the run JCL i am getting S0c7.
Then how to resolve.I am getting the offset value.
Then how to find the exact location of error.
IS xpediter used for this purpose?
Regards,
Chandra
Back to top
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Fri Sep 23, 2005 10:16 pm
Reply with quote

EnjoyMF wrote:
Hi Friends


i am hereby sending process to resolve S0c7
the same is used to resolve S0c4,S0c1 or other S0c

Hope this may help you

Regards
Prasad


Hi,
I couldn't find ur process info. Where should I look for it?
Thanks in advance!
Sridevi
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Oct 17, 2005 2:11 am
Reply with quote

Hi Sridevi,

Go to the bottom right hand corner of EnjoyMF's post above and click on "Download" just below the icon of the floppy disk.
Back to top
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Mon Oct 17, 2005 3:51 am
Reply with quote

Hi mmwife,
I got it.Thanks!
Regards,
Sridevi.
Back to top
View user's profile Send private message
sleepingcat

New User


Joined: 07 Nov 2005
Posts: 3

PostPosted: Mon Nov 07, 2005 12:37 pm
Reply with quote

hi Chandra,

you can compile your cob program that is causing this and try to find 'hex loc' in it.try to find the nearest address to the offset addr you got from you s0c7 jcl.~

regards,
Ray
Back to top
View user's profile Send private message
venkat.c

New User


Joined: 11 Dec 2005
Posts: 6

PostPosted: Mon Dec 12, 2005 2:02 am
Reply with quote

vinotht wrote:
I dont know how to select the XREF option while compilation in Changeman. Can anyone explain me by giving a screenshot? Thanks in advance.



when u try to compile a program in changeman..... it will ask u for program lang,version,compile parms,linkedit parms ets....u can give xref in the compile parm and sub the job...hope this is clear if its not mail me again i will give u with screenshots

thanks

regards

venkat
Back to top
View user's profile Send private message
sretheesh4u

New User


Joined: 18 Jan 2006
Posts: 1
Location: chennai

PostPosted: Wed Jan 18, 2006 1:14 pm
Reply with quote

HI I am not able to find the floppy icon.
can some one please repost it????

mmwife wrote:
Hi Sridevi,

Go to the bottom right hand corner of EnjoyMF's post above and click on "Download" just below the icon of the floppy disk.
Back to top
View user's profile Send private message
creator.abhishek

New User


Joined: 07 May 2006
Posts: 32
Location: Pune

PostPosted: Thu Jul 06, 2006 12:32 pm
Reply with quote

can u able to give me formula to calculate offset address.
Back to top
View user's profile Send private message
hussainasgar

New User


Joined: 06 Jul 2006
Posts: 9

PostPosted: Thu Jul 13, 2006 12:57 am
Reply with quote

Hi,

i am not able to find any attachment at right hand bottom corner. icon_sad.gif
can any one re post it.

regards,
Asgar
Back to top
View user's profile Send private message
hussainasgar

New User


Joined: 06 Jul 2006
Posts: 9

PostPosted: Thu Jul 13, 2006 1:09 am
Reply with quote

icon_smile.gif Hi,

I got the Document.
Thanks Prasad.

Cheers,
Asgar
Back to top
View user's profile Send private message
v_gopinath2003

New User


Joined: 18 Jul 2006
Posts: 1

PostPosted: Tue Jul 18, 2006 6:07 pm
Reply with quote

EnjoyMF wrote:
Hi Friends


i am hereby sending process to resolve S0c7
the same is used to resolve S0c4,S0c1 or other S0c

Hope this may help you

Regards
Prasad


Hi Prasad,

Can u post it again? It would be great if u post it.

Thanks in advance
Gopi
Back to top
View user's profile Send private message
crs916

New User


Joined: 08 Dec 2006
Posts: 2
Location: india

PostPosted: Fri Jan 09, 2009 11:56 am
Reply with quote

I am not able to find any attachment at right hand bottom corner.
can any one re post it.

Cheers
ravi
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: Fri Jan 09, 2009 12:17 pm
Reply with quote

Hello,

There is an attachment on the previous page of replies.

For best results, right-click and SaveAs to your hard drive.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts S0C7 - Field getting overlayed COBOL Programming 2
No new posts S0C7 abend while running a Cobol Program COBOL Programming 2
No new posts Looking for a Frank Yaeger article DFSORT/ICETOOL 5
No new posts S0C7 abend not able to locate COBOL Programming 8
No new posts S0C7 Data Exception Error ABENDS & Debugging 4
Search our Forums:

Back to Top