GeekInterview.com
Series: Subject: Topic:
Question: 167 of 178

What is soc4 & soc7 errors?

Asked by: Interview Candidate | Asked on: Mar 7th, 2006

Editorial / Best Answer

Answered by: VInodReddy

View all answers by VInodReddy

Member Since Feb-2006 | Answered On : Mar 9th, 2006

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.

Showing Answers 1 - 6 of 6 Answers
Minoo

Answered On : Mar 9th, 2006

View all answers by Minoo

SOC4 means address exceptionEg:  when we are trying to move a value into a variable which is having more length than defined01 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 iswhile using perform statement in a prg, when u try to read an elementbeyond the limit.SOC7 -  Data Exception.eg: when we try to move a non-numeric data into a numeric data item.

Yes  1 User has rated as useful.
  
Login to rate this answer.
VInodReddy

Answered On : Mar 9th, 2006

View all answers by VInodReddy

SOC4 abend may be due to the following reasons.1.Missing SELECT statement ( During Compile time)2.Bad Subscript/Index3.Read/Write attempt to unopened file4.Move data to/from unopened file5.Missing parameters in called subprogramSOC7 abend may be due to the following reasond1.Numeric Operation on Non-numeric data2.Coding past the maximum allowed subscript.3.Un-initialize working storage.Please let me know if there more reasons for the above mentioned abends.

Yes  1 User has rated as useful.
  
Login to rate this answer.
bharinath

Answered On : May 7th, 2006

View all answers by bharinath

How to solve soc4 and soc7 abend codes

  
Login to rate this answer.
kapilvharande

Answered On : May 29th, 2006

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

  
Login to rate this answer.

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.

  
Login to rate this answer.
Chinmay

Answered On : Aug 10th, 2011

Soc4-Protection exception, usually caused by an invalid index and subscript to an array

soc7-Caused due to bad data, in case of numeric data we are moving non-numeric,in case of numeric comparison we are finding space

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Question Categories

CICS Interview Questions

COBOL Interview Questions

DB2 Interview Questions

IDMS Interview Questions

JCL Interview Questions

VSAM Interview Questions

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.