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
 

 

Could anybody explain how to resolve S0C7?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
vamseepotti

New User


Joined: 21 Oct 2003
Posts: 45

PostPosted: Sun Feb 15, 2004 9:58 pm    Post subject: Could anybody explain how to resolve S0C7?
Reply with quote

Could anybody explain how to Resolve S0C7
Back to top
View user's profile Send private message

mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 238
Location: USA

PostPosted: Mon Feb 16, 2004 10:35 am    Post subject:
Reply with quote

Hello vamseepotti,

Basically you need to correct the offending data.

Many times the reason for SOC7 is an uninitialized numeric item. Examine that possibility first.

Many installations provide you a dump for run time abends ( it can be generated also by calling some subroutines or OS services through assembly language). These dumps provide the offset of the last instruction at which the abend occurred. Examine the compilation output XREF listing to get the verb and the line number of the source code at this offset. Then you can look at the source code to find the bug. To get capture the runtime dumps, you will have to define some datasets (SYSABOUT etc ) in JCL.

If none of these are helpful, use judgement and DISPLAY to localize the source of error.

Some installtion might have batch program debugging tools. Use them.
One of the tool is as below:

http://www.share.org/proceedings/sh98/data/S8417.PDF

Hope this helps,

Regards

Mayuresh Tendulkar
Back to top
View user's profile Send private message
mcmillan

Site Admin


Joined: 18 May 2003
Posts: 1202
Location: India

PostPosted: Mon Feb 16, 2004 12:00 pm    Post subject: Re
Reply with quote

Please try this simulator, you may get some idea...

http://ibmmainframes.com/error.html
Back to top
View user's profile Send private message
gv_narayana_rao

New User


Joined: 21 Feb 2004
Posts: 10

PostPosted: Sat Feb 21, 2004 6:34 pm    Post subject:
Reply with quote

S0C7:

The S0C7 USUALLY COMES (ONE OF THE MANY REASONS) DUE TO INVALID NUMERIC OPERATIONS LIKE COMPARING A NUMERIC VALUE WITH LOW-VALUES OR HIGH-VALUES.
IN THIS CASE AS THE REPLY GIVEN BELOW U CAN GO THRU THE DUMP AND GET THE VERB AND RECTIFY THAT.
WE CAN ALSO RECTIFY THAT BY INITIALIZING THE NUMERIC VARIABLES PROPERLY WITH INITIALIZE VERB. U CAN ALSO USE ISNUMERIC CLAUSE IN COBOL TO OVERCOME THIS PROBLEMS.


HOPE THIS MIGHT HELP U.
[/i]
Back to top
View user's profile Send private message
mcmillan

Site Admin


Joined: 18 May 2003
Posts: 1202
Location: India

PostPosted: Sun Feb 22, 2004 8:53 am    Post subject: Re: SOC7
Reply with quote

Dear,

I will summarize your posts:

Code:
Basically you need to correct the offending data.Many times the reason for SOC7 is an un-initialized numeric item. Examine that possibility first.

Many installations provide you a dump for run time abends ( it can be generated also by calling some subroutines or OS services thru assembly language). These dumps provide the offset of the last instruction at which the abend occurred. Examine the compilation output XREF listing to get the verb and the line number of the source code at this offset. Then you can look at the source code to find the bug. To get capture the runtime dumps, you will have to define some datasets (SYSABOUT etc ) in the JCL.
If none of these are helpful, use judgement and DISPLAY to localize the source of error. Some installtion might have batch program debugging tools. Use them
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to resolve IMS DB status code FM Priyanka Boga IMS DB/DC 3 Fri Jun 10, 2016 1:54 pm
No new posts Can someone explain me this JCL line ... PeterHolland JCL & VSAM 9 Sat Dec 12, 2015 7:22 am
No new posts how to Resolve SQL Error Code -924 Rajesh3825 ABENDS & Debugging 2 Thu Dec 10, 2015 2:39 pm
No new posts How to resolve -532 pkmurali DB2 3 Thu Aug 06, 2015 10:03 pm
No new posts S0C7 abend not able to locate Rijit COBOL Programming 8 Wed Apr 01, 2015 4:03 pm


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