LASTMSG

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.

Start of instruction setTo display information on the corresponding error

  • Mark one of these messages with the cursor and press ENTER.

    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.

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.

Natural RPC (Remote Procedure Call):

If an error occurs on the server, the following error information is not displayed: database ID, file number, date and time.