MRGMSGCLG (Merge Message Catalog)
MRGMSGCLG Command syntax diagram
Purpose
The Merge Message Catalog (MRGMSGCLG) command merges message text from one or more source files (SRCFILE parameter) with message text in the specified message catalog (CLGFILE parameter). If the catalog specified does not already exist, it will be created using values specified for the CLGCCSID, DTAAUT, and OBJAUT parameters. If the catalog already exists, the CCSID, DTAAUT, and OBJAUT attributes of the existing message catalog will be used.
You can specify up to 300 message text source files. Message text source files are processed in the sequence specified. Each successive source file modifies the catalog. If a message number in the source file already exists in the message catalog, the new message text defined in the source file replaces the old message text in the message catalog file. If a message number in the source file does not already exist in the message catalog, the message information is added to the message catalog.
This command can also be issued using the following alternative command name:
Example for MRGMSGCLG
MRGMSGCLG CLGFILE('/USDIR/USMSG.CAT') CLGCCSID(*SRCCSID) SRCFILE('/QSYS.LIB/MYLIB.LIB/MSGSRC.FILE/USMSG.MBR') DTAAUT(*R) TEXT('Message catalog for USA')This command merges the message text from member USMSG of source physical file MSGSRC in library MYLIB in the QSYS file system with message catalog USMSG.CAT in directory USDIR. If the message catalog does not already exist, it will be created with the CCSID of the source file and data authority of *R. The text parameter describes this as a message catalog for the USA.
Error messages for MRGMSGCLG
*ESCAPE Messages
- CPF3BE3
- Message catalog &1 not created or updated.