List Configuration Descriptions (QDCLCFGD) API

  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: Yes

The List Configuration Descriptions (QDCLCFGD) API returns a list of configuration descriptions. The list elements are all of one type (such as line, controller, or device). The list contents can be further restricted by one or more qualifiers, specified as parameters.

The QSYS2.MEDIA_LIBRARY_INFO view can be considered as an alternative to this API. See MEDIA_LIBRARY_INFO view for more information.


Authorities and Locks

Configuration Description Authority
*USE
User Space Authority
*CHANGE
User Space Library Authority
*EXECUTE

(If one or more listed objects do not meet the authority requirement, they will be omitted from the returned list. Only objects to which the user has proper authority are in the list.)


Required Parameter Group

Qualified user space name
INPUT; CHAR(20)

The user space that receives the information, and the library in which it is located. The user must have read/write access to this space. The first 10 characters contain the user space name, and the second 10 characters contain the library name.

You can use these special values for the library name:


Format name
INPUT; CHAR(8)

The content and format of the list returned. The possible format names are:

See Format of Configuration Lists for a description of these formats.

Configuration description type
INPUT; CHAR(10)

The type of configuration descriptions to be included in the list. The possible description types are:


Object qualifier
INPUT; CHAR(40)

A restriction on the objects to be listed. If a qualifier is specified that is inconsistent with the configuration description type parameter, an error message is returned. A null list is returned if no configuration descriptions meet the qualifications. If this parameter is set to all blanks, no object qualification is performed. This parameter is divided into four 10-character fields.

The primary qualifier value is placed in the first 10 characters of the parameter. The allowable values are:

The information in the following tables describes the requirements for the first (primary qualifier), second, third, and fourth 10 characters of this parameter.












Status qualifier
INPUT; CHAR(20)

A logical operator and a status value that are used to qualify which configuration descriptions are included in the list. The first 10 bytes contain a logical operator, left-justified. The valid values for the logical operator are:

The second 10 bytes contain a value denoting status, left-justified. The allowed status values, in order of precedence, are:

The value in the second 10 bytes has an inherent hierarchy: *ACTIVE is "greater than" *VARYON, and *VARYON is "greater than" *VARYOFF. The two values are used together to form a logical qualifier. For example, "*GE       *VARYON    " causes only objects that are active or varied on to be listed. Objects that are currently varied off are excluded. Both values must be present if either is present. An invalid logical qualifier results in a null list being returned. This qualifier must be blank if the configuration description type parameter is *NTBD or *IPXD.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Format of Configuration Lists

To request a list of configuration descriptions of a specific type, use format CFGD0100. To request the current status for each description returned, use format CFGD0200.

The configuration description list consists of:

For details about the user area and generic header, see User spaces. For details about the remaining items, see the following sections. For detailed descriptions of the fields in the list returned, see Field Descriptions.

When you retrieve list entry information from a user space, you must use the entry size returned in the generic header. The size of each entry may be padded at the end. If you do not use the entry size, the result may not be valid. For examples of how to process lists, see Examples: APIs and exit programs.


Input Parameter Section



Header Section



CFGD0100 Format



CFGD0200 Format



Field Descriptions

Configuration description name. The name of an object selected for inclusion in the list.

Configuration description category. The value returned in this field depends on the value specified for the configuration description type parameter when the API was called, as follows:

Note: The category values are derived from the command that is used to create the configuration description.

Configuration description command suffix. The configuration description command suffix consists of the last characters (up to 4) that are associated with the create and change command for the configuration description types.

Note: For the format name values, see the tables defined for the configuration description category field.

Configuration description type specified. The value specified for the type of configuration description to be included in the list.

The possible types are:

Configuration description type used. The type of configuration description included in the list.

Current status. The current status of the selected object using two fields:

Note: The displayable text will be returned translated. This text is retrieved from message CPX2651 in message file QCPFMSG in *LIBL. If the job CCSID, message file CCSID, or message description CCSID is 65535 the displayable text is returned in the CCSID of the message description and not in the CCSID found in the generic header of the user space. The value is one of the following:

Format name specified. The name specified for the format to be used in generating the list. The possible formats are:

Job name. The name of the job associated with an active device, if applicable.

Job number. The job number portion of a fully qualified job name.

Last activity date. The date of last activity on the object. The date format used is CYYMMDD, where:

Object qualifier specified. The qualifier values specified that define which objects are to be included in the generated list. See the Object qualifier parameter in the Required Parameter Group for details on the possible values.

Object qualifier used. The qualifier values used to determine which objects are included in the list.

Pass-through device. The name of an upstream device used to complete a pass-through session, if applicable. This field is only filled in for SNA pass-through devices. These devices are created using the Create Device Description (SNA Pass-Through) (CRTDEVSNPT) command. If an SNA pass-through device does not exist, the field is blank.

Reserved. Space included for alignment.

Retrieve API format name. The format name that is used to retrieve detailed information about a configuration description by using a retrieve API. The following are the available APIs:

Retrieve Line Description (QDCRLIND)
Retrieve Controller Description (QDCRCTLD)
Retrieve Device Description (QDCRDEVD)
Retrieve Network Server Description (QDCRNWSD)

Note: This field is filled in only for configuration description categories of *LIND, *CTLD, *DEVD, and *NWSD. For the format name values, see the tables defined for the configuration description category field.

Status qualifier specified. The status values specified that define which configuration descriptions are to be included in the generated list. See the Status qualifier parameter in the Required Parameter Group for details on the possible values.

Status qualifier used. The status values used to determine which configuration descriptions are included in the list.

Text description. The text that describes the selected object.

User name. The user name portion of a fully qualified job name.

User space library name specified. The name specified for the library that contains the user space to receive the generated list.

User space library name used. The actual name of the library used to contain the user space that received the list.

User space name specified. The name specified for the user space that is to receive the generated list.

User space name used. The actual name of the user space that received the list.


Error Messages



API introduced: V2R3

[ Back to top | Configuration APIs | APIs by category ]