LASTMSG |
This command is used to display additional information about the error situation which has occurred last.
When Natural displays an error message, it may in some cases be that this error is not the
actual error, but an error caused by another error (which in turn may have been caused by
yet another error, etc.). In such cases, the LASTMSG
command
allows you to trace the issued error back to the error which has originally caused the error
situation.
When you enter the command LASTMSG
, you will get - for the error
situation that has occurred last - the error message that has been displayed, as well as all
preceding (not displayed) error messages that have led to this error, and the date and time
behind the error message itself.
To display information on the corresponding error
Mark one of these messages with the cursor and press ENTER or PF5.
The following is displayed:
error number;
number of the line in which the error occurred;
name, type and level of the object that caused the error;
name, database ID and file number of the library containing the object;
error class (system = error issued by Natural; user = error issued by user application);
error type (runtime, syntax, command execution, session termination, program termination, remote procedure call);
date and time of the error.
The output screen of the LASTMSG
command provides the following
function keys:
PF Key | Name | Function |
---|---|---|
PF1 | Help | Invoke help. Provides information about the use of PF2 and PF5. |
PF2 | Clear | Clears all the error messages from the error message collector. |
PF5 | Info | Provides detailed information about an error, when the cursor is
placed on the error message and you press PF5. The same thing happens when the
cursor is placed on an error message and you press ENTER .
|
Note:
The library SYSEXT
contains the application programming interface
USR2006
which enables you to display in your Natural application the error
information supplied by LASTMSG
.
If an error occurs on the server, the following error information is not displayed: database ID, file number, date and time.