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:
Basic Attributes | Full Attributes | Service Attributes (see Notes) |
---|---|---|
|
|
|
You can use either the Retrieve Library Description (QLIRLIBD) API or the command DSPLIB OUTPUT(*PRINT) to find the total size of the library.
Using the Display Object Description (DSPOBJD) or Work with Objects (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 Display Object Description (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 Library ASP group. . : *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 Library ASP group. . : *SYSBAS Type . . . . . . . . : *FILE Primary group . . . : *NONE User-defined information: Attribute . . . . . . . . . . . . : Text . . . . . . . . . . . . . . . : Creation information: Creation date/time . . . . . . . . : 06/08/05 10:17:03 Created by user . . . . . . . . . : QSECOFR System created on . . . . . . . . : SYSTEM01 Object domain . . . . . . . . . . : *SYSTEM More... Press Enter to continue. F3=Exit F12=Cancel
Display Object Description - Full Library 1 of 1 Object . . . . . . . : ORDDTLP Attribute . . . . . : PF Library . . . . . : DISTLIB Owner . . . . . . . : QSECOFR Library ASP device . : *SYSBAS Library ASP group. . : *SYSBAS Type . . . . . . . . : *FILE Primary group . . . : *NONE 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/Integrity information: Object auditing value . . . . . . : *NONE Digitally signed . . . . . . . . . : NO More... Press Enter to continue. F3=Exit F12=Cancel
Display Object Description - Full Library 1 of 1 Object . . . . . . . : ORDDTLP Attribute . . . . . : PF Library . . . . . : DISTLIB Owner . . . . . . . : QSECOFR Library ASP device . : *SYSBAS Library ASP group. . : *SYSBAS Type . . . . . . . . : *FILE Primary group . . . : *NONE Storage information: Size . . . . . . . . . . . . . . . : 32768 Offline size . . . . . . . . . . . : 0 Associated space size . . . . . . : 3840 Optimum space alignment . . . . . : NO Freed . . . . . . . . . . . . . . : NO Compressed . . . . . . . . . . . . : INELIGIBLE Object ASP number . . . . . . . . : 1 Object overflowed . . . . . . . : NO Object ASP device . . . . . . . . : *SYSBAS Journaling information: Currently journaled . . . . . . . : NO More... Press Enter to continue. F3=Exit F12=Cancel
Display Object Description - Full Library 1 of 1 Object . . . . . . . : ORDDTLP Attribute . . . . . : PF Library . . . . . : DISTLIB Owner . . . . . . . : QSECOFR Library ASP device . : *SYSBAS Library ASP group. . : *SYSBAS Type . . . . . . . . : *FILE Primary group . . . : *NONE Save/Restore information: Save date/time . . . . . . . . . . : Restore date/time . . . . . . . . : Save command . . . . . . . . . . . : Device type . . . . . . . . . . . : Bottom Press Enter to continue. F3=Exit F12=Cancel