PURPOSE: The ERROR ABORT option controls the aborting of program compilation due to a fatal error. Its primary function is to aid in debugging a program. This command is valid in a CM, PM, SF or as a direct command.
{ENABLE; DISABLE} ERROR ABORT [{IF; UNLESS} clause]
ENABLE |
allows ACCENT R to abort Command Module (CM), Process Module (PM), or System File (SF) execution upon encountering a fatal error. This is the default state. |
DISABLE |
prevents such an abort. |
{IF; UNLESS} clause |
specifies certain criteria that must be met for the ENABLE or DISABLE command to take effect. |
If the data set file is missing when a USE DS command is executed, ACCENT R prints an error message and tries to continue with the next command.
*DISABLE ERROR ABORT
*LIST CM PAY
00001 DISABLE ERROR ABORT
00002 USE DS PAY
00003 EXTRACT SHOW NAME
*USE CM PAY
DS FILE PAY.DS does not exist
ERROR at line 2 of CM PAY
This command requires a data set be declared
ERROR at line 3 of CM PAY
NOTES: If ERROR ABORT is disabled and a fatal error is encountered, ACCENT R displays an error message and continues to process the PM, CM, or SF unless a condition has been discovered which prevents the continuation of a statement in a PM or a command in a CM or SF.
Fatal errors indicate a programming SYNTAX or language rules. (EXAMPLE: a command is missing a needed argument) The operating system may not know how to execute the command. The program will abort (stop execution) if the command is not corrected.