I got SOC7 error. How should I know at which location in the program this error has occurred? I should not use offset. I dont have any tools like expeditor or something like this assistance. I dont have anything. Tell me how should I know where it occurred?
Joined: 23 Nov 2005 Posts: 69 Location: Minneapolis, MN USA
For ur Information:
DATA EXCEPTION - DECIMAL DATA IS INCORRECT OR IMPROPERLY OVERLAPPED OR NOT VALIDLY INITIALIZED. --POSSIBLE CAUSE-- SUBSCRIPT ERROR, REFERENCED BEYOND TABLE COBOL - WORKING STORAGE NOT INITIALIZED - BAD DATA, SHOULD CHECK DATA FOR ERRORS - GARBAGE IN A FIELD BEING TESTED OR DISPLAYED - MOVE ZEROES TO GROUP LEVEL IS DISPLAY, HAD SUBLEVELS THAT WERE NOT - PERIOD MISSING AFTER IMPERATIVE STATEMENTS WITHIN AT END CLAUSE - BINARY FIELD IN AN ARITHMETIC OPERATION IS NOT LARGE ENOUGH TO ACCEPT RESULT (FOR MORE INFORMATION, SEE DESCRIPTION OF S0C1)
To fix it, Put display statements in each Paragraph and get the exact paragraph in which the program abends. Then put display statements and get the record causing the abend.
This is ofcourse a iterative procedure, but surely will help u to fix the bug.