Introduction MTB Statements File System Compiler Applications Reference Guide Index

Language Structure Data Division I/O Format Division Procedure Division Mnemonics

Overview Variable Names Variable Types Variable Length Variable Classification Data Division Statements System Variables

EXCP

System variable: EXCP
Length/precision: 2.0
Description: The system variable named EXCP contains the number of the most recent Comet system exception. EXCP is a two-byte numeric variable that may be interrogated by an MTB program to ascertain specific exceptions that may occur during program execution.

For example, if one user has a record extracted from a data file (a condition that locks the record), and another user attempts to read the same record, the second user will encounter an exception. For the second user, the value of the system variable EXCP will be 33, indicating that an attempt has been made to read a record that is extracted by another user.

See Comet Exception Messages.

Also see Exception Handling for more information.