The MESSAGE command is required and must immediately follow the DEFINE command. It defines the text of the pattern that is matched to system messages. AMS matches patterns to messages based on the tokens you specify in the pattern.
Format
MESSAGE "message-text"
where message-text is a string containing the text of the message. The message text must be enclosed in quotation marks.
Example
In the following example, the MESSAGE command defines message text for pattern number 20 in group newplant:
DEFINE "newplant" 20 MESSAGE "dbprog: Database /usr/dbprog/mydb does not exist."
Entering Message Text
Correct specification of message text is crucial. For example, specify
MESSAGE "THIS IS A MESSAGE FROM host-id"
for the console message that the host sends as
THIS IS A MESSAGE FROM host-id
where the host-id is a variable string inserted by the host.
Note: Leading and trailing white space, such as tab and blank characters, are stripped from the message before pattern matching.
Do not introduce extra delimiters when specifying variable portions of a message. For example, assuming spaces are the delimiters, the preceding example contains six tokens. However, if you specified "host-id" as "host id", the message would contain seven tokens. Therefore, if you used "host id" as the variable specification, AMS would not match the database pattern to the message.
Unless you include the option VARIABLE-LENGTH on the TYPE command, AMS uses the total token count as a match condition for standard patterns.