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

How to resolve SOC-7 error


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
praneethgokul

New User


Joined: 06 May 2005
Posts: 20
Location: Bangalore

PostPosted: Sat May 07, 2005 11:04 am
Reply with quote

Hi all,

How to resolve SOC-7 error?
Back to top
View user's profile Send private message
brain_s390

New User


Joined: 06 May 2005
Posts: 58
Location: Mumbai

PostPosted: Sat May 07, 2005 10:36 pm
Reply with quote

Hi Praneeth!

SOC7 occurs due to an un-initialized numeric item i.e. moving alphanumeric data item to numeric data item.

OS installations provide you a dump for run time abends .....I hope in JCL listing you will see ABENDAID output or any other tool outputs where you can see these dumps which will 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 i think it should be something like SYSABOUT.
Back to top
View user's profile Send private message
crreddy

New User


Joined: 09 May 2005
Posts: 4

PostPosted: Tue May 10, 2005 2:51 pm
Reply with quote

Hi Praneeth,
S0C7 error caused by bad data, which the program was unable to detect.
THIS MAY BE DUE TO DATA EXCEPTION - DECIMAL DATA IS INCORRECT OR IMPROPERLY OVERLAPPED OR NOT VALIDLY INITIALIZED. --POSSIBLE CAUSE-- SUBSCRIPT ERROR, REFERENCED BEYOND TABLE
COBOL - WORKING STORAGE NOT INITIALIZED - BAD DATA.

SOLUTION:
SHOULD CHECK DATA FOR ERRORS -
INITIALIZE PROPERLY ALL DATA FIELDS -
CHECK FOR NUMERIC CONDITION, AND ACT PROPERLY IF NON NUMERIC DATA -
GARBAGE IN A FIELD BEING TESTED OR DISPLAYED -
MOVE ZEROES TO GROUP LEVEL IS DISPLAY, HAD SUB-LEVELS THAT WERE NOT -
PERIOD MISSING AFTER IMPERATIVE STATEMENTS WITHIN AT END CLAUSE -
BINARY FIELD IN AN ARITHMETIC OPERATION IS NOT LARGE ENOUGH TO ACCEPT RESULT.

-crreddy
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Need help to resolve a hard edit COBOL Programming 8
Search our Forums:

Back to Top