HLASM Toolkit Feature Interactive Debug Facility User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


LASTMSG

HLASM Toolkit Feature Interactive Debug Facility User's Guide
GC26-8709-07

Returns the last 10 messages that were issued by SET MSG commands, or as a result of the execution of other IDF commands.
Read syntax diagramSkip visual syntax diagram
>>-EXTract--LASTMsg--------------------------------------------><

All messages generated by IDF are returned with message prefixes, even if the MSGID option is OFF and the message is displayed without the message id. User messages issued with a SET MSG command do not have a message id.

All messages generated by IDF are returned, even if the MSGMODE option is OFF and the message was not actually displayed in a Command window message display line.

Example

The LASTMSGM values of 0 and 1 may be used directly in Boolean tests, such as:
'EXTRACT LASTMSG'
Do I = 1 to lastmsg.0
  If lastmsgm.i Then
    Say lastmsg.i
End

REXX variables set

LASTMSG.0
Number of items in the stemmed array
LASTMSG.n
The message text (with message id, if available), of the last n messages, with the most recent message in LASTMSG.1.
LASTMSGM.0
Number of items in the stemmed array
LASTMSGM.n
The value of the MSGMODE setting at the time the nth message was issued. This is one of:
0
MSGMODE was OFF
1
MSGMODE was ON

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014