Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

How to resolve the soc4 and soc7 errors?

Answers were Sorted based on User's Feedback

How to resolve the soc4 and soc7 errors?..

Answer / ashu

soc-4 Storage violation error

soc-7 Invalid data in numeric field

Is This Answer Correct ?    13 Yes 0 No

How to resolve the soc4 and soc7 errors?..

Answer / param

You have to look at the dump and note down the offset
address.Then check the instruction with this offset address
in the program compilation output.


If you are blessed with having debugging tools then life is
a lot easier.Debug the program , the execution will stop at
the abending instruction.The advantage is that you can skip
through the statement with changing values and see if there
are any other abends in the program apart from this.Usually
very useful for resolving multiple S0C7 abends at one go!

If i'm wrong..ppl are welcome to correct me!

Is This Answer Correct ?    9 Yes 0 No

How to resolve the soc4 and soc7 errors?..

Answer / billyboyo

The general technique for any abend in an IBM Cobol program
is the same. Look at the dump. Find the address of the
instruction that is failing. Find the program the
instruction is in. Find the displacement of the failing
instruction in the program. Find the program statement from

Then, having identified the line of code and the field(s)
involved, work out what got messed up. It could be the
data, it could be your code, it could be someone else's
code. There are even other rare possibilities.

Is This Answer Correct ?    3 Yes 0 No

How to resolve the soc4 and soc7 errors?..

Answer / swamy

soc4 when u r tryng to access a memory location for which u
don't hav access

soc7 non numeric operation on numeric field

Is This Answer Correct ?    9 Yes 7 No

How to resolve the soc4 and soc7 errors?..

Answer / nagappa

Soc4 can resolved using mispleed dd name and dd name is not
matching with file

and soc7 check the sysdump and copy the offest address then
correct it in the program.

Is This Answer Correct ?    8 Yes 17 No

Post New Answer

More COBOL Interview Questions

diffrence between renames and redifnes with examples

3 Answers   IBM,

when SE37 SB37 and sd37 occurs how to increase the volume , primary quantity and secondary quantity?

1 Answers   Hewitt,

what is the difference between COBOL2 AND COBOL390?

0 Answers   L&T,

Why we need to use redefine clause when we can define the variable seperately... what is actual need....

5 Answers   Accenture,

I had 100 records and i want to execute last three records by using cobol programming?what will be coding?

4 Answers   IBM,

Read a flat file and write last but one (I have n records in a file I have to write n-1th) record in another flat file. Could you please provide me the code in COBOL?

1 Answers  

How do you define a variable of comp-1 and comp-2?

0 Answers  

what is a load module ?

3 Answers   TCS,

How do pass the values to the parameters in cobol

2 Answers  

i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

0 Answers  

i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

0 Answers  

I am sending values a and b with pic x(10) and pic x(10) by using call statement. In linkage section, I am receiving values with pic x(10) and pic x(11). Will my program fail? will it be compile error or run time abend?

3 Answers