If the user attempts to add an existing message unit using the //ADD-MSG statement in menu mode, MSGMAKER switches automatically to the MODIFY-MSG mask and issues a warning.
Format (operands in menu mode)
ADD-MSG | ||||||||||||||||||||||||
|
The OVERWRITE operand no longer exists
Operands
MSG-ID = *CLASS(...) / *INTERVAL(...) / <alphanum-name 1..7 with-wild> /list-poss(2000): <name 7..7>
Specifies the message code of the message unit.
Unlike the //ADD-MSG statement in batch jobs and procedures, ADD-MSG in menu mode allows the user to specify a message class, a message range or a partially qualified message code. It is also possible to specify a list of message codes.
MSG-ID = *CLASS(...)
Defines a message class.
MSG-CLASS = <name 3..3>
Specifies the three-letter message class.
MSG-ID = *INTERVAL(...)
Defines a message range.
FROM = <alphanum-name 1..7 with-wild>
Specifies the first message code of the message range. The seven-character message code may be fully or partially qualified, the first three characters, however, must always be letters (message class). The asterisk (*) can stand for between one and seven characters, and the character # can stand for between one and four digits.
Example
Valid specifications for <alphanum-name 1..7 with-wild> are:
*, A*, AB*, ABC*, ABC0*, ABC00*, ABC000*
ABC#, ABC0#, ABC00#, ABC000#
TO = <name 7..7>
The full seven-character message code must be specified. The seven-character message code can be fully or partially qualified.
MSG-ID = <alphanum-name 1..7 with-wild>
The seven-character message code may be fully or partially qualified, the first three characters, however, must always be letters (message class). The asterisk (*) can stand for between one and seven characters, and the character # can stand for between one and four digits.
Example
See the operand MSG-ID=*INTERVAL(FROM=<alphanum-name 1..7 with-wild>)
MSG-ID = list-poss(2000): <name 7..7>
A list of full message codes can be specified.