Keywords and parameters

OBJECT

Specifies the type of object to be listed.

QSGDISP

Specifies from where the object definition information is obtained. Depending on how the object has been defined, this information is either:

  • On the page set zero referred to by the CSQP0000 DD statement, or

  • In a DB2 shared repository.

Permitted values are shown in Table 12.

Table 12. SDEFS QSGDISP parameters and their actions
QSGDISP parameter What the SDEFS utility does
QMGR Creates DEFINE statements for the specified object type from definitions held on the page set zero referred to by the CSQP0000 DD statement. (1)

Only objects defined with QSGDISP(QMGR) are included.

COPY Creates DEFINE statements for the specified object type from definitions held on the page set zero referred to by the CSQP0000 DD statement. (1)

Only objects defined with QSGDISP(COPY) are included.

PRIVATE Creates DEFINE statements for the specified object type from definitions held on the page set zero referred to by the CSQP0000 DD statement. (1)

Both QSGDISP(QMGR) and QSGDISP(COPY) objects are included.

GROUP Creates DEFINE statements for the specified object type from definitions held on DB2 resource definition tables for the specified queue-sharing group.

Only objects defined with QSGDISP(GROUP) are included.

No CSQP0000 DD statement is required; the DB2 subsystem specified at object definition is accessed. The DB2 library db2qual.SDSNLOAD is required.

SHARED Creates DEFINE statements for all local queues defined with QSGDISP(SHARED) by accessing the DB2 resource definition table for the specified queue-sharing group.

This parameter is permitted only with OBJECT(QLOCAL) or OBJECT(QUEUE).

No CSQP0000 DD statement is required; the DB2 subsystem specified at object definition is accessed. The DB2 library db2qual.SDSNLOAD is required.

Notes:

  1. Because only page set zero is accessed, ensure that the queue manager is not running.

MAKEDEF(ddname2)

Specifies that define commands generated for the object are to be placed in the output data set identified by the DDname. The data set should be RECFM=FB, LRECL=80. This data set can then be used as input for a later invocation of the COMMAND function or it can be incorporated into the initialization data sets CSQINP1 and CSQINP2.

The commands generated are DEFINE NOREPLACE, with all the attributes and values for the object.

Note:
DEFINE commands are not generated for any local queues that can be identified as dynamic, or for channels that were defined automatically.