Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
This command is an alias for the Merge Message Catalog (MRGMSGCLG) command and can also be issued using the following alternative command name:
The Generate Message Catalog (GENCAT) 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.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
CLGFILE | Message catalog name | Path name | Required, Positional 1 |
SRCFILE | Source file path name | Values (up to 300 repetitions): Path name | Required, Positional 2 |
TEXT | Text 'description' | Character value, *BLANK | Optional |
CLGCCSID | Message catalog CCSID | 1-65533, *SRCCCSID, *JOB | Optional |
SRCCCSID | Source file CCSID | 1-65533, *SRCFILE, *JOB | Optional |
DTAAUT | Public authority for data | Name, *INDIR, *NONE, *RWX, *RX, *RW, *WX, *R, *W, *X, *EXCLUDE | Optional |
OBJAUT | Public authority for object | Single values: *INDIR, *NONE, *ALL Other values (up to 4 repetitions): *OBJEXIST, *OBJMGT, *OBJALTER, *OBJREF |
Optional |
Top |
Specifies the path name of the message catalog to be changed or created. All directories in a stream file path name must exist. If no stream file exists with the specified path name, a message catalog with the specified file name is created. If the path name is in the QSYS file system, the file must exist. If a file member in the QSYS file system does not exist, it is created. Source physical files with multiple data fields are not supported.
Top |
Specifies the path name of the source file that contains the message text to be merged into the message catalog. If the file is from the QSYS file system, then it must be a database source physical file.
Note: If the source file is not a record file, then each line in the source file must have been terminated with a newline or linefeed character when the source file was created.
Top |
Specifies the text that briefly describes the message catalog.
Note: Assigning text to objects is dependent on the support provided by the file system or object type used for the message catalog.
The possible values are:
Top |
Specifies the coded character set ID (CCSID) in which to store the message text in the message catalog. If the message catalog is a stream file, the CCSID value entered is used to set the stream file's attributes. Use the Work with Object Links (WRKLNK) command to display the CCSID of a message catalog. Use the Display File Description (DSPFD) command to determine the CCSID of a message catalog in the QSYS file system.
The possible values are:
Top |
Specifies the coded character set ID (CCSID) of the source file.
The possible values are:
Top |
Specifies the public authority given users for the data in the object created.
The possible values are:
Top |
Specifies the authorities given users to the object.
The possible values are:
Or specify up to four (4) of the following values:
Top |
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.
Top |
Top |