GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe
Go To First  |  Previous Question  |  Next Question 
 Mainframe  |  Question 12 of 55    Print  
What is soc4 & soc7 errors?

  
Total Answers and Comments: 5 Last Update: November 17, 2008     Asked by: sss 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
March 09, 2006 07:20:59   #1  
Minoo Member Since: January 2006   Contribution: 8    

RE: what is soc4 & soc7 errors

SOC4 means address exception

Eg: when we are trying to move a value into a variable which is having more length than defined

01 var_A pic 9(05) value 12345.

01 var_B pic 9(05) value 11111.

01 var_c pic 9(04).

procedure division.

000-para.

compute Var_c var_A + Var_B.

We will get address exception

Reason var_c can't accomidate the variable of length more than its declaration.

One more instance where we can get SOC4 is

while using perform statement in a prg when u try to read an element

beyond the limit.

SOC7 - Data Exception.

eg: when we try to move a non-numeric data into a numeric data item.


 
Is this answer useful? Yes | No
March 09, 2006 08:17:50   #2  
VInodReddy Member Since: February 2006   Contribution: 1    

RE: what is soc4 & soc7 errors

SOC4 abend may be due to the following reasons.

1.Missing SELECT statement ( During Compile time)

2.Bad Subscript/Index

3.Read/Write attempt to unopened file

4.Move data to/from unopened file

5.Missing parameters in called subprogram

SOC7 abend may be due to the following reasond

1.Numeric Operation on Non-numeric data

2.Coding past the maximum allowed subscript.

3.Un-initialize working storage.

Please let me know if there more reasons for the above mentioned abends.


 
Is this answer useful? Yes | No
May 07, 2006 10:48:50   #3  
bharinath Member Since: January 2006   Contribution: 1    

RE: what is soc4 & soc7 errors
how to solve soc4 and soc7 abend codes
 
Is this answer useful? Yes | No
May 29, 2006 05:46:54   #4  
kapilvharande        

RE: what is soc4 & soc7 errors
soc4 means subscript being out of range.soc7 means uninaialized numeric field.for soc7 if we are doing numeric opretion which field is defined as non-numeric
 
Is this answer useful? Yes | No
November 17, 2008 15:10:46   #5  
chaitanyanavakoti19 Member Since: November 2008   Contribution: 1    

RE: What is soc4 & soc7 errors?
SOC4 means subscript being out of range. This is because of compiler option.
Default is nossrange we have to change it for ssrange....

SOC7 means uninaialized numeric field. For SOC7 if we are doing numeric opretion which field is defined as non-numeric.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape