A message can be predefined or immediate.
Consider the following information when you design and code:
Use the Create Message File (CRTMSGF) command to create a message file to hold the predefined message description. The contents of the predefined message description can be put into a message file by the Add Message Description (ADDMSGD) command.
File &1 in Library &2 not found.
&1; and &2; are the substitution variables. Those substitution variables can appear in different positions for different languages.
English Y = Yes Danish J = Ja (means Yes)
The following figure shows the creation of different NLV messages from message files.
A program can directly access the message file for program messages, or it can indirectly access the message file through display files for program messages.