Command reference / object
WRKDTAARA
Work with Data Areas
The Work with Data Areas (WRKDTAARA) command allows you to show a list of data areas from one or more libraries. Only the libraries to which you have use (*USE) authority will be searched, and only the data areas to which you have some authority will be shown on the display.
Allowed environments: *INTERACT, *IPGM, *IREXX, *EXEC.
Positional parameters: 2.
Restrictions
- Only the libraries to which you have use (*USE) authority will be searched.
- Only the data areas to which you have some authority will be shown on the display.
- To perform operations on the data areas, you must have *USE authority to the command used by the operation, and the appropriate authority to the data areas on which the operation is to be performed.
Parameters
DTAARA
Data area
Specifies the data areas to be shown. This is a required parameter. The first qualifier is the data area name or generic name; the second qualifier is the library.
*ALL- All data areas in the specified library or libraries are shown.
*LIBL- All libraries in the library list for the current thread are searched.
*CURLIB- The current library for the thread is searched. If no current library is set, QGPL is searched.
*USRLIBL- The current library and the libraries in the user portion of the library list are searched.
*ALLUSR- All user libraries (names not beginning with Q, plus selected IBM-supplied Qxxx libraries) are searched.
*ALL (lib)- All libraries in the system, including QSYS, are searched.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Data area
Data area
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
WRKDTAARA DTAARA(LIB01/ABC*)
This command allows you to display and work with a list of data areas beginning with the letters 'ABC' that are stored in library LIB01.
Generated from os/cl/catalog/WRKDTAARA.json and os/cl/help/WRKDTAARA.json.