Example of Using Dictionary Substitution in a Message Repository
The following is a sample message repository that contains a two-item dictionary:
Here is a line-by-line description of what this repository contains:
- Line(s)
- Explanation
- 1 - 4
- Comment lines.
- 5
- The control line.
An ampersand (&) is the substitution character, and you want to display 4 message number digits.
- 6
- The first message in the repository, number 0007. When the message is to be displayed, you have to specify what information is to be substituted in place of the &1.
- 7
- The second message, number 0017. When the message is to be displayed, you have to specify what information is to be substituted in place of the &1.
- 8
- A dictionary item, number 8001. If you want to call message 0017 substituting “compiler”
into &1, use the following XMITMSG command from the command line:
The following message is displayed:XMITMSG 17 8001 (APPLID OPL
(The message header also includes the application IDOPL???0017I You have invoked the compiler
OPL
and ??? is the default for the caller. See z/VM: CMS Commands and Utilities Reference for more information on XMITMSG.) - 9
- A second dictionary item, numbered 8002. If you want to call message
0017 substituting “assembler” into &2, use the following XMITMSG
command:
XMITMSG 17 8002 (APPLID OPL
The following message is displayed:OPL???0017I You have invoked the assembler