The message file name and library specified at the time the message file was sent are used to search for the message file from which the message description is retrieved.
This is true when a message file has not been overridden and when a message file name is overridden but the message identifier is not contained in the overridden file.
The system search depends on whether you specify the message file library as either *CURLIB or *LIBL. The following describes the search path for *CURLIB and *LIBL:
The system searches for the message file named in the specified library or the job's current library (*CURLIB).
The system searches for the message file named in the job's library list (*LIBL). The search stops after finding the first message file with the specified name.
If the message file is found, but does not contain a description for the message identifier, the message attributes and text of message CPF2457 in QCPFMSG are used in place of the missing message description.
If the message file was not found, the system attempts to retrieve the message from the message file that was used at the time the message was sent.