Command reference / prog
WRKMOD
Work with Modules
The Work with Modules (WRKMOD) command allows you to display and work with a list of modules from one or more libraries. Only the libraries to which you have use (*USE) authority are searched, and only the modules to which you have read (*READ) authority are shown on the display.
Allowed environments: *INTERACT, *IPGM, *IREXX, *EXEC.
Positional parameters: 2.
Restrictions
- Only the libraries to which you have use (*USE) authority are searched.
- Only the modules to which you have read (*READ) authority are shown on the display.
- To perform operations on the modules, you must have *USE authority to the command used by the operation, and the appropriate authority to the modules on which the operation is to be performed.
Parameters
MODULE
Module
Specifies how to search for modules to be placed in the list. All modules with names that correspond to the specified parameter value, and for which the user has authority, are shown. This is a required parameter. The first qualifier is the module name or generic name; the second qualifier is the library.
*ALL- All modules in the libraries identified in the library qualifier are shown.
*LIBL- All libraries in the library list for the current thread are searched.
*CURLIB- The current library for the job is searched. If no current library is set, QGPL is used.
*USRLIBL- Only the libraries in the user portion of the job's library list are searched.
*ALL (lib)- All libraries in the system portion of the job's library list, including QSYS, are searched.
*ALLUSR- All user libraries (names not beginning with Q, plus selected IBM-supplied Qxxx libraries) are searched.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Module
Module
Suggested / special values:
*ALL
Library
Library
Suggested / special values:
*LIBL, *CURLIB, *USRLIBL, *ALL, *ALLUSR
OUTPUT
Output
Specifies whether the output from the command is displayed at the requesting work station or printed with the job's spooled output.
Allowed values:
*, *PRINT
*- Displayed for interactive jobs; printed with the job's spooled output for non-interactive jobs.
*PRINT- Printed with the job's spooled output.
Examples
WRKMOD MODULE(MYLIB/*ALL)
This command lists all the modules to which the user has authority that are stored in library MYLIB.
Generated from os/cl/catalog/WRKMOD.json and os/cl/help/WRKMOD.json.