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.