_lastmsg - UDM Built-in Variable
The _lastmsg built-in variable is a data element (that is, a simple array) that contains all of the messages written in the transaction log for the last network-oriented or file-oriented command that was issued.
Whenever a new network- or file-oriented command is issued, the contents of _lastmsg is cleared before the command is processed so that _lastmsg will contain only messages relating to that command.
If UDM encounters a print command while processing a network- or file-oriented command, the value of the msg parameter in that command is appended to _lastmsg as a new line.
The contents of _lastmsg can be listed at any time by issuing the following command:
data print=_lastmsg