msgmnt - Message Definition
msgmnt
Define messages used to process errors and information in online and batch programs. You can define a message for a specific product line and program, or you can define a message that is global to the product line (independent of the program). For more information, see Doc for Developers: Application Development Workbench.
To define a message
-
On the Message Definition form, consider the following fields.
Field Description Product Line The product line for which you want to define messages. Category The category (for example, program code or system) for which you want to define messages.
When you enter a category, the system displays the numbers (100 - 999) and their corresponding messages for the selected product line or category.
If you leave this field blank, the system displays the messages that are global to the product line. Global numbers range from 1 to 99.
Number The message number. Xlate Whether the message is flagged for translation. The default is Yes. You use this flag in conjunction with the Dump Application Messages (dmpappmsg) and Load Application Messages (ldappmsg) utilities to control whether you dump or load tranlatable messages. Message Up to 60 characters of message text. To indicate a variable, use an integer inside curly brackets - for example, {0}, {1}, and so on. You can use up to five variables, {0} to {4}.
Note: The 60-character limit applies to the length of the message text plus the length of the text the variables translate to.
Example:
The following example of message text (specified in the Message field) produces a message that inserts the employee number, employee name, company number, and company name.
Employee {0} {1} works at {2} [3} company.