Figure 215 shows how to specify the MSGID keyword.
Figure 215. Specifying the MSGID Keyword
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 A R RECORD1 A MSGFIELD1 40A B 02 10MSGID(CPD0001 QGPL/USRMSG) A 01 MSGFIELD2 10A O 02 60 A 25 MSGID(&MSGIDNUM &MSGFILENM); A MSGID(CPD1234 QGPL/USRMSG) A MSGFIELD3 80A B 02 60 A MSGID(USR &MSGNBR + A QGPL/&MSGGILENM); A MSGIDNUM 7A P A MSGFILENM 10A H A MSGNBR 4A B 07 01 A
When RECORD1 is displayed:
When option indicator 01 is on but option indicator 25 is off, MSGFIELD2 contains the first 10 characters of message CPD1234 from the message file USRMSG in library QGPL. Since MSGFIELD2 is an output-only field (usage O), it cannot be used in the program.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.