What is soc4 & soc7 errors?

Editorial / Best Answer

VInodReddy  

  • Member Since Feb-2006 | 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

  • Mar 9th, 2006
 

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.

VInodReddy

  • 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.

kapilvharande

  • 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

  Was this answer useful?  Yes

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.

  Was this answer useful?  Yes

Chinmay

  • 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

  Was this answer useful?  Yes

Give your answer:

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

Answer Question

Click here to Login / Register your free account


 
Send   Reset

 

Related Answered Questions

 

Related Open Questions