Messages can also be used to store information required by HLL programs, such as file overrides, and program call request strings. Message substitution variables can be used to substitute program variables into the request messages before execution.
This technique provides great flexibility in implementation since the content of the retrieved message may be changed at any time using the OS/400 Change Message Description (CHGMSGD) command. The drawback, apart from a slight performance overhead, is that the system is less transparent to understand, and the called function cannot be cross-referenced automatically.

The V2R1 API QMHRTVM can be used to retrieve message text directly into an HLL.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |