WRKMNU (Work with Menus)
Purpose
The Work with Menus (WRKMNU) command allows you to display and work with a list of menus and allows the performance of several menu related functions including displaying the menu or menu attributes.
Restrictions
- Only the libraries to which you have USE authority will be searched.
- Only the menus to which you have some authority will be shown on the display.
- To perform operations on the menus, have USE authority to the command used by the operation, and the appropriate authority to the menus on which the operation is to be performed.
Required Parameters
- MENU
- Specifies the qualified names of the menus shown on the Work with Menus display. A specific menu name or a generic menu name can be specified; either type can be optionally qualified by a library name.
The name of the menu 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.
*ALL: All libraries in the system, including QSYS, are searched.
library-name: Specify the name of the library to be searched.
*ALL: All menus specified in the libraries are listed on the Work with Menus display.
menu-name: Specify the name of the menu being listed.
generic*-menu-name: Specify the generic name of the menu. 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.
Example for WRKMNU
WRKMNU PERSLIB/OE*This command allows you to work with a list of all menus in library PERSLIB whose names begin with OE.
Error messages for WRKMNU
*ESCAPE Messages
- CPF9809
- Library &1 cannot be accessed.