Example of displaying messages

The following table shows two ways a general application program (a program not using WTO to issue messages) can display messages.

Displaying a message without using MMS Displaying a message using MMS
  • Build a buffer for an English message containing a message ID, fixed text, and substitution data.
  • Display the English message (for example, by using TSO/E PUTLINE). The application supports only English.
  • Build a buffer for an English message. You must match the message format of the English message buffer to the format of the English message skeleton.
  • Issue the TRANMSG macro using the English message buffer as input, and getting a translated message buffer as output.
  • Present the translated message, ensuring that your output device supports the chosen language. By "presenting" a message, you might choose to write the message to a data set, or write it to a screen.

OR