WRKMSGF (Work with Message Files)

WRKMSGF Command syntax diagram

 

Purpose

The Work with Message Files (WRKMSGF) command allows you to display and work with a list of message files from one or more libraries.

 

Restrictions

  1. Only the libraries to which you have USE authority will be searched.
  2. Only the message files to which you have some authority will be shown on the display.
  3. To perform operations on the message files, have USE authority to the command used by the operation, and the appropriate authority to the message files on which the operation is to be performed.
  4. You must have object operational authority for the message file.

 

Required Parameters

MSGF
Specifies a list of message files in the libraries that are shown. If no library qualifier is specified, *LIBL is assumed and all libraries in the library list are searched for the message files.

The name of the message file can be qualified by one of the following library values:

*LIBL: All libraries in the job's library list are searched. All objects in these libraries with the specified object name are shown.

*CURLIB: The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.

*USRLIBL: Only the libraries in the user portion of the job's library list are searched.

*ALLUSR Libraries

*ALL: All libraries in the system, including QSYS, are searched.

library-name: Specify the name of the library to be searched.

*ALL: All message files in the libraries identified in the library qualifier are shown.

generic*-message-file-name: Specify the generic name of the message file. A generic name is a character string of one or more characters followed by an asterisk (*); for example, ABC*. The asterisk substitutes for any valid characters. A generic name specifies all objects with names that begin with the generic prefix for which the user has authority. If an asterisk is not included with the generic (prefix) name, the system assumes it to be the complete object name. If the complete object name is specified, and multiple libraries are searched, multiple objects can be worked with only if *ALL or *ALLUSR library values can be specified for the name. See generic names for additional information.

message-file-name: Specify the name of the message file to use.

Example for WRKMSGF

WRKMSGF  MSGF(ACCNTLIB/*ALL)

This command lists all the message files in the ACCNTLIB library.

Error messages for WRKMSGF

*ESCAPE Messages

CPF9809
Library &1 cannot be accessed.