DATA EXCEPTION



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

DATA EXCEPTION

Postby GLEO » Thu Sep 03, 2009 4:56 pm

During the test of my program,I encountered data exception but I dont know
how to find out why data exception occured.
This is the code:
EXECUTION FAILED WITH VSE CANCEL CODE 20 AND INTERRUP
CODE 07.
COMPILE UNIT OFFSET +00001FF6 AT ADDRESS 0070206E.
How can i know this using the offset or is there any method on how can i know what was the cause?
thanks for help.
GLEO
 
Posts: 1
Joined: Thu Sep 03, 2009 4:40 pm
Has thanked: 0 time
Been thanked: 0 time

Re: DATA EXCEPTION

Postby dick scherrer » Fri Sep 04, 2009 12:52 am

Hello and welcome to the forum,

The offset given is where the failing instruction is located in your program. To find which statement this relates to look at your compile output. The offset may not exactly match an instruction location because many cobol statements generate more than one executable instruction.

Onother option is to look in the dump at the address specified and determine the problem from the instruction and the values at the locations where the registers for that instruction indicate (not a good first-time exercise if working on something that is needed quickly - it is a great way to learn more about the system).
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post