Version 6.3.13 for UNIX
 —  System Commands  —

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

Note:
The library SYSEXT contains a user application programming interface USR2006 which enables you to display in your Natural application the error information supplied by LASTMSG.

Natural Remote Procedure Call (RPC):

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

Top of page