You will get this error because of invalid data.This is basically data exception error.
solution:
First you need to specify PARM = XREF in Compilation JCL.
Then it will display all the corresponding OFFSETS to the statements.
Then
goto SYSDUMP there you can find the offset where the error has occured.copy that offset and type FIND OFFSET in the command prompt, then the control will go to the corresponding erroneous statement.Then you can correct the statement.
SOC4:
This error occurs because of two reasons:
1.out of subscript:
trying to perform more than specified limit.
suppose you specified the length of the array as 10 but trying to access the 11th element from the array.
2.invalid address:
This error occurs when you are TRYING TO READ,WRITE,DELETE THE RECORDS WITHOUT OPENING the FILE.