Rational Developer for System z
COBOL for Windows, Version 7.5, Programming Guide


TRAP

TRAP indicates whether COBOL intercepts exceptions.

TRAP option syntax
Read syntax diagramSkip visual syntax diagram         .-ON--.    
>>-TRAP(-+-OFF-+-)---------------------------------------------><
 

Default is: TRAP(ON).

If TRAP(OFF) is in effect and you do not supply your own trap handler to handle exceptional conditions, the conditions result in a default action by the operating system. For example, if your program attempts to store into an illegal location, the default system action is to issue a message and terminate the process.

ON
Activates COBOL interception of exceptions.
OFF
Deactivates COBOL interception of exceptions.

Usage notes


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)