Retrieve Hardware Resource List (QGYRHRL, QgyRtvHdwRscList) API


  Required Parameter Group:


  Service Program: QGYRHR

  Default Public Authority: *USE

  Threadsafe: No

The Retrieve Hardware Resource List (OPM, QGYRHRL; ILE, QgyRtvHdwRscList) API retrieves a list of hardware resource names and other hardware resource information fields. The list provides a summary description for each resource in the specified resource category.


Authorities and Locks

API Public Authority
*USE

Required Parameter Group

Receiver variable
OUTPUT; CHAR(*)

The receiver variable that receives the information requested. You can specify the size of the area to be smaller than the format requested as long as you specify the length parameter correctly. As a result, the API returns only the data that the area can hold.

Length of receiver variable
INPUT; BINARY(4)

The length of the receiver variable provided. The length of receiver variable parameter may be specified up to the size of the receiver variable specified in the user program. If the length of receiver variable parameter specified is larger than the allocated size of the receiver variable specified in the user program, the results are not predictable. The minimum length is 16 bytes.

Format name
INPUT; CHAR(8)

The content and format of the information returned. The possible format names are as follows:


Resource category
INPUT; BINARY(4)

The hardware resource category for which information is to be returned. Possible values are as follows:

Note: When selecting Local area network resources, only information for token-ring resources can be obtained. Information for token-ring resources associated with a particular line description will be returned only if the Work with LAN Adapters (WRKLANADPT) command has been run with that line description specified. It is also necessary for the LAN Manager to have been activated for that line description. The LAN Manager is activated by running the Create Line Description Token-Ring Network (CRTLINTRN) or the Change Line Description Token-Ring Network (CHGLINTRN) command with keyword ACTLANMGR set to *YES. WRKLANADPT must be run again after adding a new token-ring resource in order to be able to retrieve information for that resource.

Error code
I/O; CHAR(*)

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


RHRL0100 Format



RHRL0110 Format



Field Descriptions

Adapter address. The network address of the LAN adapter resource.

Bytes available. The length in bytes of all data available to return. All available data is returned if enough space is provided.

Bytes returned. The length in bytes of all data actually returned.

Description. The description of the resource.

Description text message ID. The message from which the text of the Description field is obtained. This message is contained in the QCPFMSG message file. The library in which it is found is determined by *LIBL.

Family level. The relationship between adjacent returned resources. Possible values are positive integers starting with 1, incrementing as needed to match the number of existing family levels. The first three values are as follows:

Length of resource entry. The length, in bytes, of each resource entry.

Line type. The line type of the LAN resource. Possible values are as follows:

Model number. The model number of the resource. For self-configuring tape devices, this represents the emulated device model number.

Number of resources returned. The total number of resources for which information is returned by the API.

Reserved. A reserved field.

Resource category. The hardware resource category of the resource for which information is returned. If the input parameter Resource category is set to the number 1 (All hardware resources), the format field value returned here is set to one of the other more specific values. Otherwise, the returned value matches the input value. Possible values are as follows:

Resource entries. The sets of information fields that are retrieved for each resource.

Resource kind. The resource kind field consists of 24 bytes of hexadecimal numbers. It can be divided into three 8-byte fields called Kind 1, Kind 2, and Kind 3. The system uses Kind 1, Kind 2, and Kind 3 to categorize the resource.

Resource name. The name of the resource for which the information in the resource entry applies. The name can be used as input to the Retrieve Hardware Resource Information (QGYRHRI, QgyRtvHdwRscInfo) API.

Status. Whether the resource is operational or not. Possible values are as follows:

Status extended. The extended hardware status of the resource. Possible values are as follows:

System to which adapter is connected. The system to which the coupled system adapter is connected.

Type number. An identifier that represents the object type of this resource. For self-configuring tape devices, this represents the emulated device type number. Exceptions: Value of *TAP implies that a self-configuring tape device is emulating a device type that contains characters outside the range of 0 to 9 and A to Z.


Error Messages



API introduced: V3R7

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