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

Could anybody explain how to resolve S0C7?


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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: 237
Location: USA

PostPosted: Mon Feb 16, 2004 10:35 am
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:

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: 1207
Location: India

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

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

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
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: 1207
Location: India

PostPosted: Sun Feb 22, 2004 8:53 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts S0C7 - Field getting overlayed COBOL Programming 2
No new posts How to resolve SYNCH15! & SYNCH16... Compuware & Other Tools 0
No new posts S0C7 abend while running a Cobol Program COBOL Programming 2
No new posts How to resolve sqlcode of CALL ATTACH... DB2 3
No new posts How to resolve U4038? COBOL Programming 5
Search our Forums:

Back to Top