Search Hardware Resource Entry (QRZSCHE) API


  Required Parameter Group:


   Default Public Authority: *USE

  Threadsafe: No

The Search Hardware Resource Entry (QRZSCHE) API retrieves the resource name of a hardware resource that matches the request criteria. The user of the API supplies the request criteria with key values. The first or next resource name that matches the request criteria is returned. Each call of this API returns only one resource name. Multiple calls may be necessary to obtain all resource names from a possible list of resource names. Each resource name can be used with other hardware resource APIs to get more information about the specific hardware resource.

Note: Some key values are used as a singular search criterion rather than as part of a more complex search. Searches that use a singular search criterion have very concise results; for example, a search for console controller can return a maximum of one possible resource name.

Some key values can be used in conjunction with other key values to make a search more precise.

You can use this API to do the following:

Note: Some of the search criteria can be used only by themselves.


Authorities and Locks

API Public Authority
*USE

Required Parameter Group

Resource name
OUTPUT; CHAR(32)

The receiver variable that receives the resource name based on the request criteria. The resource name is a 32-character field that is left-justified and padded with trailing blanks.

Resource criteria
INPUT; CHAR(*)

The criteria for which the search is processed. See Format of the Resource Criteria for details about this format.

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 the Resource Criteria



Field Descriptions

Data. The following table identifies the data field and the data type for the specified key.

Handle. The value of the handle. The handle allows repeated calls to obtain more than one resource name that meets the request criteria. The handle is created through the Create Handle (QRZCRTH) API. The handle is required in conjunction with the first/next search request. The handle must be set to binary zeros in conjunction with the first search request when no next search request is needed. The user is responsible for deleting the handle when it is no longer needed. Use the Delete Handle (QRZDLTH) API to delete the handle.

Key. The key identifies the search criteria. Following are the key values that can be used:

Length of data. The number of bytes for the corresponding data field. For each field length, see the Type column of the table in Format of the Resource Criteria.

Length of structure. The total length (in bytes) of the structure provided, which includes this field through the end of the last variable length record.

Number of variable length records. The number of variable length records supplied.

Offset to first variable length record. The value (in bytes) from the beginning of the structure to the offset field of the first variable length record.

Search request. Whether the search request is a first attempt or a next attempt.

Search resource. Whether to search for the resource name from the logical resource information or the packaging resource information.

Size of variable length record. The displacement from the current record to the next variable length record.

Variable length records. Each possible variable length record consists of the size of the variable length record, a key value, the length of the data, and the data.


Error Messages



API introduced: V3R6

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