The list of remaining CBLTERM fields is as follows:
Contains the name of the action block.
This is an output field that by default contains the following message:
TIRM000E: SYSTEM ERROR OCCURRED - CONTACT SUPPORT
The message can be changed in the termination exit to anything meaningful to the user. For online procedures with a screen, the message is visible in the error message field when the screen is redisplayed.
TERM-SYSTEM-PRINTER is valued with the printer TERMID if the action block executed a PRINTER TERMINAL IS statement.
Indicates the message:
TIRM037E: ** A FATAL ERROR HAS BEEN ENCOUNTERED **
Indicates the message:
TIRM037E: ** FATAL VIEW OVERFLOW HAS BEEN ENCOUNTERED **
Is appended to the message:
TIRM034E: LAST OR CURRENT DATABASE STATEMENT = ...
Is appended to the message:
TIRM040E: PERMITTED VALUES MISMATCH, FIELD = F ...
Produces the message:
TIRM038E: ** FATAL DATABASE ERROR HAS BEEN ENCOUNTERED **
Is appended to the message:
TIRM039E: DB LAST STATUS = ...
This field is documented in online help under the error message TIRM039E.
Is appended to the message:
TIRM035E: CURRENT STATEMENT BEING PROCESSED = ...
Is appended to the message:
TIRM032E: LAST OR CURRENT ACTION BLOCK ID = ...
Is appended to the message:
TIRM033E: LAST OR CURRENT ACTION BLOCK NAME = ...
These fields describe PCB pointers. The first is the IO-PCB, the second is the ALTERNATE-IO-PCB; the last is a database pointer.
The following is a pointer to the SQLCA. The address fields of the SQLCA, first define it in linkage. Use the following example:
MY-SQLCA FILLER MY-SQL-CODE FILLER
Add a SET statement at the beginning of the procedure division:
SET ADDRESS OF MY-SQLCA TO TERM-SQLCA-PTR
The special field of COMMAND.
The special field of TRANCODE.
The exit state number.
The exit state message.
The special field of USERID.
The special field of TERMID.
Represents the ID of the system printer.
The message number is the FAIL-MSG-NO set be the Dialog Manager. See the Message Guide for the message that is represented by the error code displayed.
Before calling the termination exit, TIRFAIL, prepares a table of messages that it display on return from the exit if the TERM-STATUS-CODE is a space or a zero. These messages are available to the exit. The last line with a message is followed by a line of all spaces.
The current dialect
The text of the failure message. This is moved to TERM-DEFAULT-MSG if you want it displayed on the application screen instead of the message:
TIRM000E: SYSTEM ERROR OCCURRED - CONTACT SUPPORT
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|