IBM MAINFRAME HELP & SUPPORT FORUMS
Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
 

Article: Resoving S0C7

THIS IS AN ARCHIVE FORUM: CLICK HERE TO GO TO THE ORIGINAL TOPIC
Goto page 1, 2  Next
 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> ABENDS & Debugging
View previous topic :: View next topic  
Author Message
EnjoyMF



Joined: 27 May 2005
Posts: 92

Posted: Tue Jun 07, 2005 12:21 pm    Post subject: Article: Resoving S0C7  

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  
Kunal Roy



Joined: 24 Jun 2005
Posts: 2

Posted: Fri Jun 24, 2005 8:46 am    Post subject: Re: Article: Resoving S0C7  

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  
kotesh_cs634
Guest





Posted: Tue Jun 28, 2005 12:22 pm    Post subject: more iformation  

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
Guest


Joined: 24 Jun 2005
Posts: 1
Location: Bangalore

Posted: Wed Jun 29, 2005 2:49 pm    Post subject: Hi.  

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  
Guest
Guest





Posted: Sat Aug 27, 2005 12:58 pm    Post subject:  

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


Joined: 30 May 2003
Posts: 1506

Posted: Sun Aug 28, 2005 10:11 pm    Post subject:  

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. :roll:

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  
Guest
Guest





Posted: Thu Sep 01, 2005 11:50 am    Post subject: what is JESYMSG IN SPOOL  

HI
CAN ANY BODY COULD U PLZ EXPLAIN ME ABOUT THIS
JESYMSG...
:?:
Back to top  
learnmf
Guest


Joined: 14 Mar 2005
Posts: 124

Posted: Sat Sep 10, 2005 4:58 pm    Post subject: Re: Article: Resoving S0C7  

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  
Sridevi_C
Guest


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

Posted: Fri Sep 23, 2005 10:16 pm    Post subject: Re: Article: Resoving S0C7  

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  
mmwife
Guest


Joined: 30 May 2003
Posts: 1506

Posted: Mon Oct 17, 2005 2:11 am    Post subject:  

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  
Sridevi_C
Guest


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

Posted: Mon Oct 17, 2005 3:51 am    Post subject:  

Hi mmwife,
I got it.Thanks!
Regards,
Sridevi.
Back to top  
sleepingcat
Guest


Joined: 07 Nov 2005
Posts: 3

Posted: Mon Nov 07, 2005 12:37 pm    Post subject:  

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  
venkat.c
Guest


Joined: 11 Dec 2005
Posts: 6

Posted: Mon Dec 12, 2005 2:02 am    Post subject: Re: Hi.  

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  
sretheesh4u
Guest


Joined: 18 Jan 2006
Posts: 1
Location: chennai

Posted: Wed Jan 18, 2006 1:14 pm    Post subject: Please do help  

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  
creator.abhishek
Guest


Joined: 07 May 2006
Posts: 23
Location: Pune

Posted: Thu Jul 06, 2006 12:32 pm    Post subject:  

can u able to give me formula to calculate offset address.
Back to top  
 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> ABENDS & Debugging Goto page 1, 2  Next
Page 1 of 2
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM