You can use the Display Object Description (DSPOBJD) or Work with Objects (WRKOBJ) command to display descriptions of objects. These descriptions are helpful for determining if objects exist on the system but are not being used. If you are using batch processing, the descriptions can be printed or written to a database file. If you are using interactive processing, the descriptions can be displayed, printed, or written to a database file.
You can display basic, full, or service attributes for object
descriptions. These object descriptions are found in the following
table:
Table 4-2. Attributes Displayed for Object Descriptions
Basic Attributes | Full Attributes | Service Attributes (see Notes) |
---|---|---|
|
|
|
Notes:
You can use either the Retrieve Library Description API (QLIRLIBD) or the command DSPLIB OUTPUT(*PRINT) to find the total size of the library.
Using the DSPOBJD or WRKOBJ command, you can list the objects in a library for which you are authorized by:
The objects are listed by library; within a library, they are listed by type. Within object type, the objects are listed in alphanumeric order.
You may want to use the DSPOBJD command in a batch job if you want to display many objects with the *FULL or *SERVICE option. The output can go to a spooled printer file and be printed instead of being shown at the display station, or the output can go to a database file. If you direct the output to a database file, all the attributes of the object are written to the file. Use the Display File Field Description (DSPFFD) command for file QADSPOBJ, in library QSYS, to view the record format for this file.
The following command displays the descriptions of the order entry files (that is, the files in DISTLIB) whose names begin with ORD. ORD* is the generic name.
DSPOBJD OBJ(DISTLIB/ORD*) OBJTYPE(*FILE) + DETAIL(*BASIC) OUTPUT(*)
The resulting basic display is:
+--------------------------------------------------------------------------------+
| Display Object Description - Basic |
| Library 1 of 1|
|Library . . . . . . : DISTLIB Library ASP device . : *SYSBAS |
| |
|Type options, press Enter. |
| 5=Display full attributes 8=Display service attributes |
| |
|Opt Object Type Attribute Size Text |
| _ ORDDTLP *FILE PF 8192 Order detail |
| _ ORDHDRP *FILE PF 8192 Order header |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| Bottom |
|F3=Exit F12=Cancel F17=Top F18=Bottom |
| |
+--------------------------------------------------------------------------------+
If you specify *FULL instead of *BASIC or if you enter a 5 in front of
ORDDTLP on the basic display, the resulting full display is:
+--------------------------------------------------------------------------------+
| Display Object Description - Full |
| Library 1 of 1|
|Object . . . . . . . : ORDDTLP Attribute . . . . . : PF |
| Library . . . . . : DISTLIB Owner . . . . . . . : QSECOFR |
|Library ASP device . : *SYSBAS Primary group . . . : *NONE |
|Type . . . . . . . . : *FILE |
|User-defined information: |
| Attribute . . . . . . . . . . . . : |
| Text . . . . . . . . . . . . . . : |
|Creation information: |
| Creation date and time . . . . . . : 06/08/89 10:17:03 |
| Created by user . . . . . . . . . : QSECOFR |
| System created on . . . . . . . . : SYSTEM01 |
| Object domain . . . . . . . . . . : *SYSTEM |
|Change/Usage information: |
| Change date/time . . . . . . . . . : 05/11/90 10:03:02 |
| Usage data collected . . . . . . . : YES |
| Last used date . . . . . . . . . . : 05/11/90 |
| Days used count . . . . . . . . . : 20 |
| Reset date . . . . . . . . . . . . : 03/10/90 |
| Allow change by program . . . . . : YES |
|Auditing information: |
| Object auditing value . . . . . . : *NONE |
| Digitally signed . . . . . . . . . : NO |
|Press Enter to continue. |
|F3=Exit F12=Cancel (C) COPYRIGHT IBM CORP. 1980, 1993. |
+--------------------------------------------------------------------------------+
+--------------------------------------------------------------------------------+
| Display Object Description - Full |
| Library 1 of 1|
|Object . . . . . . . : ORDDTLP Attribute . . . . . : PF |
| Library . . . . . : DISTLIB Owner . . . . . . . : QSECOFR |
|Type . . . . . . . . : *FILE |
| |
|Storage information: |
| Size . . . . . . . . . . . . . . . : 8192 |
| Offline size . . . . . . . . . . . : 0 |
| Freed . . . . . . . . . . . . . . : NO |
| Compressed . . . . . . . . . . . . : NO |
| Object ASP number . . . . . . . . : 1 |
| Object overflowed . . . . . . . . : NO |
| Object ASP device . . . . . . . . : *SYSBAS |
| Object overflowed . . . . . . . : NO |
|Journaling information: |
| Currently journaled . . . . . . : NO |
|Save/Restore information: |
| Save date/time . . . . . . . . . . : |
| Restore date/time . . . . . . . . : |
| Save command . . . . . . . . . . . : |
| Device type . . . . . . . . . . . : |
| Bottom |
|Press Enter to continue. |
| |
| |
|F3=Exit F12=Cancel |
| (C) COPYRIGHT IBM CORP. 1980, 1993. |
+--------------------------------------------------------------------------------+
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.