Command reference / object
DSPOBJD
Display Object Description
Shows the names and attributes of specified objects in the specified library, or in the libraries of the library list for the current thread. It can also show the names and attributes of libraries themselves. Only object attributes are shown, not data attributes or the data itself. It also indicates whether a shown object is damaged or cannot be accessed because it is locked. Any object for which you have some authority other than *EXCLUDE can be shown. Libraries for which you lack *EXECUTE cannot be shown. Depending on the library qualifier, either the first object found is shown, or all matching objects you are authorized to are shown. The QSYS2.OBJECT_STATISTICS table function returns similar information.
Allowed environments: *ALL.
Positional parameters: 3.
Restrictions
- You must have *EXECUTE authority for the specified libraries. If you lack *EXECUTE authority for a library, none of its objects are shown.
- You must have some authority other than *EXCLUDE for an object to be shown, unless DETAIL(*NAME) is specified. With *NAME, objects you have no authority to are not returned unless you have the QIBM_LIST_ALL_OBJS function; user profile objects you have no authority to are never returned.
- You must have *ALLOBJ or *AUDIT special authority to see a value other than *NOTAVL for the object auditing field.
Parameters
OBJ
Object
Specifies which objects in the library or libraries are to have their object attributes shown. If library (qualifier 2) is not specified, *LIBL is assumed, and all libraries in the library list for the current thread are searched. This is a required parameter.
Suggested / special values:
*ALLUSR, *IBM
*ALLUSR- With OBJTYPE(*LIB), describe user libraries in the selected ASPs.
*IBM- With OBJTYPE(*LIB), describe libraries selected by SAVLIB LIB(*IBM).
*ALL- As an object name, all objects of the types specified by OBJTYPE that you are authorized to are shown. As a library qualifier, all libraries in the ASPs specified by ASPDEV are searched.
*LIBL- Library qualifier: all libraries in the library list for the current thread are searched until the first match is found.
*USRLIBL- Library qualifier: if a current library entry exists, the current library and the user portion of the library list are searched; otherwise only the user portion is searched.
*CURLIB- Library qualifier: the current library for the thread is searched; if none is set, QGPL is searched.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Object
Object
Suggested / special values:
*ALL
Library
Library
Suggested / special values:
*LIBL, *CURLIB, *USRLIBL, *ALL, *ALLUSR
OBJTYPE
Object type
Specifies which types of objects are shown. This parameter can be a single value or a list of one or more object types. This is a required parameter.
Suggested / special values:
*ALL
*ALL- All types of objects with the specified object name are shown.
DETAIL
Detail
Specifies which set of attributes is shown for each object.
Allowed values:
*BASIC, *FULL, *SERVICE, *NAME, *TEXTATR
*BASIC- The display or listing contains the name and a basic set of object attributes for each object.
*FULL- The display or listing contains the name and a full set of object attributes for each object, including the basic set.
*SERVICE- The display or listing contains the service-related attributes for each object.
*NAME- Only with OUTPUT(*OUTFILE): return object names, types and ASP information. Objects without authority require QIBM_LIST_ALL_OBJS; unauthorized user profiles remain excluded.
*TEXTATR- Only with OUTPUT(*OUTFILE): return object names, types, attributes, text descriptions and ASP information.
ASPDEV
ASP device
Selects the ASP search. A device name may be followed by *ASP or *ASPGRP. With OBJ library *LIBL, *CURLIB or *USRLIBL, only ASPDEV(*) is valid.
Suggested / special values:
*, *ALLAVL, *CURASPGRP, *SYSBAS
*- Search the thread's library name space, including its ASP group.
*ALLAVL- Search all available ASP groups alphabetically, then the system and basic user ASPs; bypass unauthorized ASPs and libraries.
*CURASPGRP- Search only the thread's ASP group; fail if the thread has no ASP group.
*SYSBAS- Search system ASP 1 and basic user ASPs 2 through 32 only.
name- Search the named Available primary or secondary ASP.
*ASP- Search only the device named in element 1; *EXECUTE authority is required for it.
*ASPGRP- Search the group of the primary ASP in element 1; *EXECUTE authority is required for every device in the group.
Elements in order
Device
Device
Search type
Search type
Allowed values:
*ASP, *ASPGRP
OUTPUT
Output
Specifies where the output from the command is sent.
Allowed values:
*, *PRINT, *OUTFILE
*- The output is displayed (if requested by an interactive job) or printed with the job's spooled output (if requested by a batch job).
*PRINT- The output is printed with the job's spooled output.
*OUTFILE- The output is directed to the database file specified for the File to receive output (OUTFILE) parameter.
OUTFILE
File to receive output
Names the database file used with OUTPUT(*OUTFILE). If absent, the file is created. Its format is QLIDOBJD, as in QSYS/QADSPOBJ.
*LIBL- Search the library list for the output file.
*CURLIB- Use the current library, or QGPL when none is set.
Qualified parts (object, then library; write LIBRARY/OBJECT)
File
File
Library
Library
Suggested / special values:
*LIBL, *CURLIB
OUTMBR
Output member options
Names the output member and selects whether records replace or follow existing records. A missing member is created.
*FIRST- Use the first member; if none exists, create a member named for the output file.
*REPLACE- Clear the existing member before writing output.
*ADD- Append output records to the existing member.
Elements in order
Member
Member
Suggested / special values:
*FIRST
Replace or add records
Replace or add records
Allowed values:
*REPLACE, *ADD
Examples
DSPOBJD OBJ(X/PAY) OBJTYPE(*ALL)
Shows a basic description of all objects named PAY in library X for which you have some authority other than *EXCLUDE. Objects you have no authority to are not shown.
DSPOBJD OBJ(X/PAY) OBJTYPE(*PGM) DETAIL(*FULL)
Shows a full description of the program named PAY in library X, including all its attributes.
Generated from os/cl/catalog/DSPOBJD.json and os/cl/help/DSPOBJD.json.