The STRMESSAGE function returns the text of the error message specified by Err . This function is especially useful in conjunction with the CODE field of the system variable which always contains the error number of the last error. The MSG field of the !ERROR_STATE system variable contains the text of the last error message.
Set this keyword to return the name of the message block that defines Err . If this keyword is specified, Err must be an error code.