If I get a SOC7 because of a prticular record in input file. Suppose if the 10th record was the one which contained bad data which caused SOC7, how to find out that it was the 10th record which caused this error.
Joined: 02 Dec 2003 Posts: 151 Location: Tokyo, Japan
When you get S0C7 error, you will definitely get an Offset. Note that Offset. Now compile the program and in the compile list find the offset. Then just above you will get the line number for the code. Now go to the top of the compile listing and find out the line number. You will get the COBOL verb and variables name from there.
I don't know how do you find that it is in 10th. record (may be from Display).
After getting the variable names, try to locate the variable definition in compile listing. After getting this you will get the BLW at the right side of the variable. Note that and in the Dump, go to that particular BLW. You can see the data within that variable.
If you work somewhere, ask some of your senior. They will explain you with live example.