Software AG Products 2.4.1 | Reference Guide | Default Statements | Detailed Syntax | @ABORT
 
@ABORT
You can use the @ABORT statement may to modify the regular response code analysis procedure provided by Adabas Pre-Compiler.
The syntax of the statement is as follows:
Syntax of the abort statement
The regular procedure consists of a module named RESPINT that interprets the response codes according to the text in the Natural system file FNAT. The module prints the text in the SYSOUT file in addition to the content of the control block and the source line of the responsible command. The module also calls the PRTRACE module to print the content of all Adabas buffers and then terminates the run.
Adabas Pre-Compiler checks for an invalid response code and generates a call to the RESPINT module, giving the following parameters :
CONTROL-BLOCK, DDFILE, CSEQ, FORMAT-BUF, RECORD-BUF,
VALUE-BUF, CLN1, CLN2, TRCE, CLNNUM, DDDBID
For more information about these fields, see declaration statement.
The parameter "module name" is used when the database administrator decides to handle response codes differently, creating his own module. Adabas Pre-Compiler will generate a call to that module instead of RESPINT but will pass the same parameters. If the user written module is in PL/1 the PLI keyword has to be used.
The FILE parameter is used in order to specify the FNAT file number where the response code analysis routine finds the response code interpretation. Please note that the file number has to point to the correct FNAT file at time of execution. The file number is added to the accessed file list when Adabas Pre-Compiler generates the @OPEN command. If @ABORT FILE=0 is specified, Adabas Pre-Compiler will skip the file number of the errors file when generating the @OPEN command.
The DBID parameter is used in order to specify the database id of the FNAT file if this file is on a different database than the one the program is using. If this parameter is omitted, Adabas Pre-Compiler passes DBID=0 to RESPINT. In that case, RESPINT uses the default database.
If you wish to eliminate the response code interpretation generated by Adabas Pre-Compiler, you have to use an empty @ABORT statement. For example:
@ABORT.
In this case Adabas Pre-Compiler ignores the response code’s check and it is your responsibility to check it after every Adabas Pre-Compiler command in the program.