Retrieve Resource Information (QRZRRSI) API


  Required Parameter Group:

1 Receiver variable Output Char(*)
2 Length of receiver variable Input Binary(4)
3 Format name Input Char(8)
4 Request criteria Input Char(*)
5 Error code I/O Char(*)

  Default Public Authority: *EXCLUDE

  Threadsafe: No

The Retrieve Resource Information (QRZRRSI) API retrieves selected fields of a hardware resource from a known resource name. The user of the API supplies the resource name along with the request criteria by using key values. The first or next information data that matches the request criteria from the resource name supplied is returned.

Key values are used as a singular search criterion rather than as part of a more complex search. The singular search criterion, by its nature, has very concise results.


Authorities and Locks

API Public Authority
*EXCLUDE

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 8 bytes.

Format name
INPUT; CHAR(8)

The content and format of the information returned. The possible format name is as follows:

RTVI0100 Returns the resource information from the hardware resource name supplied and that matches the request criteria. See RTVI0100 Format for details about the format.

Request criteria
INPUT; CHAR(*)

The criteria for which the retrieve will be processed.

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 Request Criteria

Offset Type Field
Dec Hex
0 0 CHAR(32) Resource name
32 20 CHAR(16) Handle
48 30 BINARY(4) Search request
52 34 BINARY(4) Offset to first key
56 38 BINARY(4) Number of keys
    CHAR(*) Keys


Field Descriptions

Handle. The unique value that is obtained through the Create Handle (QRZCRTH) API. 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 or 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.

Keys. Following are the key values to be used in the request criteria. For a description of the key and the values that are valid for the key, see Key Field Descriptions.

Key Field Type
2 rvxCommunication flag CHAR(1)
3 Type number CHAR(4)
4 Serial number CHAR(10)
5 Model number CHAR(3)
9 Reported this IPL flag CHAR(1)
10 LAN flag CHAR(1)
11 Vary-on wait time BINARY(4)
12 Bus number CHAR(*)
14 Plant of manufacture number CHAR(2)
15 Part number CHAR(12)
16 Emulating type CHAR(4)
17 Emulating model CHAR(3)
19 Memory size BINARY(4)
20 Powered-on flag CHAR(1)
21 Resource classification CHAR(8)
22 Operational flag CHAR(1)
23 IOP has DASD flag CHAR(1)
24 Normal mode flag CHAR(1)
25 Supplied data at IPL flag CHAR(1)
26 DASD candidate flag CHAR(1)
30 Number of resources BINARY(2)
31 Card number CHAR(*)
32 Board number CHAR(*)
33 RCTT level CHAR(1)
34 Card position CHAR(5)
35 EIA (Electronics Industries Association) CHAR(2)
36 User location text CHAR(40)
37 Frame ID CHAR(4)
38 Device position CHAR(5)
44 Frame resource name CHAR(4)
45 Auxiliary processor CHAR(*)
46 Device address CHAR(*)
47 Keyboard type CHAR(1)
48 Color flag CHAR(1)
51 Supported on system flag CHAR(1)
52 Controller description needed flag CHAR(1)
53 Supports assign command flag CHAR(1)
54 Wide screen flag CHAR(1)
55 Programmable flag CHAR(1)
56 Keyboard type extended CHAR(1)
57 Console usage CHAR(8)
58 ASCII flag CHAR(1)
59 High-speed digital flag CHAR(1)
60 LAN speed CHAR(1)
62 V.24 interface flag CHAR(1)
63 X.21 interface flag CHAR(1)
64 V.35 interface flag CHAR(1)
65 V.36 interface flag CHAR(1)
67 Maximum lines attached CHAR(1)
68 Interface adapter card flag CHAR(1)
69 DCE adapter card flag CHAR(1)
70 Maximum ports attached CHAR(1)
71 Maximum frame size BINARY(2)
72 FAX communications flag CHAR(1)
74 File server I/O processor flag CHAR(1)
75 User configurable flag CHAR(1)
76 Can backspace flag CHAR(1)
77 Can overwrite flag CHAR(1)
78 Supports tape write error recovery procedure (TWERP) flag CHAR(1)
79 Library address CHAR(*)
81 Transport type CHAR(*)
82 UA type CHAR(*)
83 Is daughter card flag CHAR(1)
84 Contact data CHAR(136)
86 Remote type CHAR(4)
87 Remote model CHAR(3)
88 Remote serial CHAR(10)
89 Remote name CHAR(8)
90 Is an OEM CHAR(1)
91 Is shared CHAR(1)
119 Resource ID CHAR(4)
120 Write format CHAR(2)
121 Read format CHAR(2)
122 Media type CHAR(1)
123 In library CHAR(1)
124 Installed memory BINARY(4)
125 Usable memory BINARY(4)
126 Host type CHAR(4)
127 Host model CHAR(3)
128 Host serial CHAR(10)
129 Host name CHAR(8)
130 Host this system CHAR(1)
146 I/O adapter address CHAR(*)
150 Processor feature CHAR(4)
151 Interactive feature CHAR(4)
152 Location Code Format CHAR(1)
153 Location Code CHAR(79)

Number of keys. The number of keys supplied in the keys variable. One key per call is supported; multiple keys on one call are not supported.

Offset to first key. The offset from the start of the structure to the first key.

Resource name. The name of the resource from which the retrieval is to be made. The resource name either is known or was obtained by using another hardware resource API. Note: This field must specify the CEC resource name when requesting resource information data for either the Processor feature (key value 150), the Interactive feature (key value 151) or the Location code format (key value 152).

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

1 The first attempt to obtain resource information from a possible list of resource information. This obtains the first list entry.
2 The next attempt to obtain resource information from a possible list of resource information. This obtains a subsequent list entry if it exists.


RTVI0100 Format

Offset Type Field
Dec Hex
0 0 BINARY(4) Bytes returned
4 4 BINARY(4) Bytes available
8 8 BINARY(4) Number of entries returned
12 C BINARY(4) Length of variable record
16 10 BINARY(4) Key
20 14 BINARY(4) Length of data
24 18 CHAR(*) Data


Field Descriptions

Bytes available. The number of bytes of data available to be returned. All available data is returned if enough space is provided.

Bytes returned. The number of bytes of data returned.

Data. The data that is returned for the key.

Key. The key for the data in this variable length record. For a list of keys that can be returned in this field, see the Keys field description.

Length of data. The length of the data portion of this variable length record.

Length of variable record. The length of the current variable length record.

Number of entries returned. The number of values returned by the API.


Key Field Descriptions

ASCII flag. Whether the resource is an American National Standard Code for Information Exchange (ASCII) type. Valid values for this field are 0 (No) and 1 (Yes).

Auxiliary processor. The address of the auxiliary processor. The value for this field is returned as BINARY(2) and CHAR(4). Both variables, BINARY(2) and CHAR(4), are the same. BINARY(2) is the binary representation of the requested value, and CHAR(4) is the character representation of the requested value. The order that the variables are put into storage is binary first and then character.

Board number. A numerical representation of a section of the bus that the card is plugged into. The value for this field is returned as BINARY(2) and CHAR(4). Both variables, BINARY(2) and CHAR(4), are the same. BINARY(2) is the binary representation of the requested value, and CHAR(4) is the character representation of the requested value. The order that the variables are put into storage is binary first and then character.

Bus number. A numerical representation of the path connection of the system processor to the card. The value for this field is returned as BINARY(4) and CHAR(2). Both variables, BINARY(4) and CHAR(2), are the same. BINARY(4) is the binary representation of the requested value, and CHAR(2) is the character representation of the requested value. The order that the variables are put into storage is binary first and then character.

Can backspace flag. Whether the resource supports the backspace operation. Valid values for this field are 0 (No) and 1 (Yes).

Can overwrite flag. Whether the resource supports the overwrite operation. Valid values for this field are 0 (No) and 1 (Yes).

Card number. A numerical representation of the location of the card on the bus. The value for this field is returned as BINARY(2) and CHAR(4). Both variables, BINARY(2) and CHAR(4), are the same. BINARY(2) is the binary representation of the requested value, and CHAR(4) is the character representation of the requested value. The order that the variables are put into storage is binary first and then character.

Card position. The physical location where the device or feature is plugged into the bus.

Color flag. Whether the resource supports a color attribute. Valid values for this field are 0 (No) and 1 (Yes).

Console usage. A value that indicates whether this resource is the primary console, the secondary console, or not used as a console of the system.

Resource Returned value
Not used as console X'4000000000000000'
Used as primary console X'4FFFFFFFFFFFFFFF'
Used as secondary console X'0000000000000001'

Contact data. The data that is received by the resource when it is contacted.

Controller description needed flag. Whether the controller description is needed with this resource. Valid values for this field are 0 (No) and 1 (Yes).

DASD candidate flag. Whether a storage device is a direct access storage device (DASD). Valid values for this field are 0 (No) and 1 (Yes).

DCE adapter card flag. Whether the resource is a data circuit-terminating equipment (DCE) card adapter. Valid values for this field are 0 (No) and 1 (Yes).

Device address. A unique identifier for each device, so that the device is recognized by the system. The value for this field is returned as BINARY(2) and CHAR(4). Both variables, BINARY(2) and CHAR(4), are the same. BINARY(2) is the binary representation of the requested value, and CHAR(4) is the character representation of the requested value. The order that the variables are put into storage is binary first and then character.

Device position. A unique identifier for each device within its containing frame.

EIA. A value that represents the physical position of the resource in its containing frame.

Emulating model. A model number for which this resource is emulating.

Emulating type. The object type number that this resource is emulating.

FAX communications flag. Whether this communications resource is a FAX-type communication. Valid values for this field are 0 (No) and 1 (Yes).

Frame ID. The identifier of a supplied frame resource.

Frame resource name. The resource name of the frame that a known resource resides in.

File server I/O processor flag. Whether the resource is an Integrated PC Server (also known as file server I/O processor and FSIOP). Valid values for this field are 0 (No) and 1 (Yes).

High-speed digital flag. Whether the resource is a high-speed digital communications line. Valid values for this field are 0 (No) and 1 (Yes).

Host model. The model of the host resource.

Host name. The name of the host resource.

Host serial. The serial number of the host resource.

Host this system. Whether the resource is the host of this system. Valid values for this field are 0 (No) and 1 (Yes).

Host type. The type of the host resource.

In library. Whether the resource is in a library. Valid values for this field are 0 (No) and 1 (Yes).

Installed memory. The amount of memory, in megabytes, installed in the resource.

Interactive feature. The interactive feature of the system. This feature defines the portion of the processor that can be used to perform interactive work.

Interface adapter card flag. Whether the resource is an interface adapter card. Valid values for this field are 0 (No) and 1 (Yes).

I/O adapter address. The address of the I/O adapter where the resource is plugged into. The value for this field is returned as BINARY(2) and CHAR(4). Both variables, BINARY(2) and CHAR(4), are the same. BINARY(2) is the binary representation of the requested value, and CHAR(4) is the character representation of the requested value. The order that the variables are put into storage is binary first and then character.

IOP has DASD flag. Whether the resource (IOP) has a direct access storage device (DASD) attached. Valid values for this field are 0 (No) and 1 (Yes).

Is an OEM. Whether the resource is an original equipment manufacturer (OEM) resource. Valid values for this field are 0 (No) and 1 (Yes).

Is daughter card flag. Whether the resource is a daughter card. Valid values for this field are 0 (No) and 1 (Yes).

Is shared. Whether the resource is shared. Valid values for this field are 0 (No) and 1 (Yes).

Keyboard type. The physical key arrangement and assignments for the keyboard shipped from the factory.

Keyboard type extended. Additional information about the keyboard type.

LAN flag. Whether the resource is a local area network (LAN). Valid values for this field are 0 (No) and 1 (Yes).

LAN speed. A value that returns the line speed of a LAN.

Library address. The address of the library where the resource is plugged into. The value for this field is returned as BINARY(2) and CHAR(2). Both variables, BINARY(2) and CHAR(2), are the same. BINARY(2) is the binary representation of the requested value, and CHAR(2) is the character representation of the requested value. The order that the variables are put into storage is binary first and then character.

Location Code Format. Whether the location code is supported on the system. Valid values for this field are 0 (No) and 1 (Yes).

Location Code. The physical location of the hardware resource in the system. This field is be available only if the system supports the location code format. The location code field is a sequence of 0 or more location labels that when followed in order, lead to the resource location. This is the place someone could go to view, remove, or replace the piece of hardware. Location labels are etched, silk screened, or marked in other ways on hardware. The following location labels might be shown in the location code field (n represents a numerical or alphabetical identifier):

Utttt.mmm.sssssss
Unit location
Pnn
Planar location
Cnn
Card location
Tnn
Port location
Dnn
Device location
Vnnn
Virtual planar
Wnnnnnnnnnnnnnnnn
Worldwide port name
Lnn
Logical path location

Following are the descriptions of the location labels:

Unit location. Value of the unit enclosure identifier composed of uppercase alphabetic characters and digits. Commonly this value will be composed of the machine type (tttt), model (mmm) and serial number (sssssss).
Planar location. Decimal value of the planar identfier within the unit.
Card location. The decimal value of the position of the card within the hardware package. This can be followed by additional card location labels that would identify the decimal value of additional card positions of the resource on the card.
Port location. The decimal value of the port location within the resource.
Device location. The decimal value of the position of the device within the hardware package.
Virtual planar. The decimal value of the position of the virtual planar resource within the hardware package.
Worldwide port name. The hexadecimal value of the worldwide port name of the resource within the hardware package.
Logical path location. The decimal value of the logical path of the resource within the hardware package. This can be followed by additional logical path location labels that would identify the decimal value of additional logical path data of the resource on the hardware package.

Maximum frame size. The maximum path information unit (PIU) size that the controller can send or receive.

Maximum lines attached. A value that indicates the maximum number of lines that can be attached to a resource.

Maximum ports attached. A value that indicates the maximum number of ports associated with a resource.

Media type. The media type identifier of the resource.

Memory size. The amount of memory associated with this resource.

Model number. The model number of the resource.

Normal mode flag. Whether the resource is in normal mode. Valid values for this field are 0 (No) and 1 (Yes).

Number of resources. The number of resources connected to a known resource.

Operational flag. Whether the resource is designated as operational. Valid values for this field are 0 (No) and 1 (Yes).

Part number. A manufacturing identifier that represents similar types of hardware.

Plant of manufacture number. An identifier that represents the manufacturing plant of this resource.

Powered-on flag. Whether the resource is powered on. Valid values for this field are 0 (No) and 1 (Yes).

Processor feature. The processor feature, corresponding to the processor capacity of the system.

Programmable flag. Whether the resource supports the programmable attribute. Valid values for this field are 0 (No) and 1 (Yes).

RCTT level. The Reference Code Translation Table (RCTT) identifier.

Read format. The type of read format used by the resource.

Remote model. The model of the remote resource.

Remote name. The name of the remote resource.

Remote serial. The serial number of the remote resource.

Remote type. The type of the remote resource.

Reported this IPL flag. Whether the resource reported this initial program load (IPL). Valid values for this field are 0 (No) and 1 (Yes).

Resource classification 1. The type of hardware that the resource is.

Hardware type Returned value
Not available X'4000000000000000'
Any classification 1 X'4FFFFFFFFFFFFFFF'
IOP X'0000000000000001'
Controller X'0000000000000002'
Device X'0000000000000004'
Port X'0000000000000008'
Channel X'0000000000000010'
Library X'0000000000000020'
Bus controller X'0000000000000040'
IO node X'0000000000000080'
Bus X'0000000000000100'
Bus extension X'0000000000000200'
PIU X'0000000000000400'
PCK X'0000000000000800'
PCI node X'0000000000001000'

Resource classification 2. The type of controller that the resource is.

Controller type Returned value
Not available X'4000000000000000'
Any classification 2 X'4FFFFFFFFFFFFFFF'
Workstation X'0000000000000001'
Storage X'0000000000000002'
Workstation storage X'0000000000000003'
Communications X'0000000000000004'
Workstation communications X'0000000000000005'
Storage communications X'0000000000000006'
Storage communications workstation X'0000000000000007'
Shared object clustering (SOC) X'0000000000000008'
Cryptographic X'0000000000000010'
Workstation cryptography X'0000000000000011'
Storage cryptography X'0000000000000012'
Storage workstation cryptography X'0000000000000013'
Communication cryptography X'0000000000000014'
Communication workstation cryptography X'0000000000000015'
Storage communications cryptography X'0000000000000016'
Storage communications workstation cryptography X'0000000000000017'

Resource classification 3. The type of device that the resource is.

Device type Returned value
Not available X'4000000000000000'
Any classification 3 X'4FFFFFFFFFFFFFFF'
Display X'0000000000000001'
Printer X'0000000000000002'
DASD X'0000000000000004'
Diskette X'0000000000000008'
Dasd Diskette X'000000000000000C'
Optical X'0000000000000010'
Tape X'0000000000000020'
Dasd Tape X'0000000000000024'
Dasd Tape Diskette X'000000000000002C'
Tape Optical X'0000000000000030'
Removable media X'0000000000000038'
Dasd Tape Diskette Optical X'000000000000003C'
ISDN X'0000000000000040'
X.25 X'0000000000000080'
Token ring X'0000000000000100'
SDLC X'0000000000000200'
Ethernet X'0000000000000400'
Token ring/Ethernet X'0000000000000500'
FDDI X'0000000000000800'
Token ring FDDI X'0000000000000900'
Frame relay X'0000000000001000'
Frame relay SDLC X'0000000000001200'
Cryptographic X'0000000000002000'
Fax X'0000000000004000'
Memory X'0000000000008000'
Service processor X'0000000000010000'
Main processor X'0000000000020000'
Bus controller X'0000000000040000'
System information X'0000000000080000'
Control panel X'0000000000100000'
Bus adapter X'0000000000200000'
SPD bus X'0000000000400000'
Bus extension X'0000000000800000'
Sba PIU X'0000000001000000'
Twin optical bus controller X'0000000002000000'
ASCII X'0000000004000000'
ASCII display X'0000000004000001'
ASCII printer X'0000000004000002'
Twinaxial X'0000000008000000'
Twinaxial display X'0000000008000001'
Twinaxial printer X'0000000008000002'
Apple X'0000000010000000'
Apple token ring LAN X'0000000010000100'
Apple Ethernet X'0000000010000400'
Wireless X'0000000020000000'
SOC host X'0000000040000000'
SOC nonhost X'0000000080000000'
Internetwork Packet Exchange (IPX) X'0000000100000000'
File server X'0000000200000000'
ATM X'0000000400000000'
ATM Ethernet X'0000000400000400'
Backplane X'0000000800000000'
System clock X'0000001000000000'
Optical library X'0000002000000000'
PCI Bus X'0000004000000000'
PHB Bus controller X'0000008000000000'
RIO Bus adapter X'0000010000000000'
Cache X'0000020000000000'
Virtual SOC IOP X'0000040000000000'
Virtual resource X'0000080000000000'
Virtual Optical X'0000080000000010'
Virtual Twin Optical Bus controller X'0000080002000000'
Processor capacity card X'0000100000000000'
Interactive card X'0000200000000000'
Storage Enclosure Services (SES) device X'0000400000000000'
RIO controller Bus Control Chip (BuCC) X'0000800000000000'
RIO bus X'0001000000000000'
RIO SAN bus adapter X'0002000000000000'
RIO SAN bus X'0004000000000000'
RIO SAN BuCC X'0008000000000000'
RIO SAN SOC IOP X'0010000000000000'
Riser X'0020000000000000'
L3 Cache X'0040000000000000'
Backplane extender X'0080000000000000'
Capacitor card X'0100000000000000'

Resource ID. The identification (ID) of the resource.

rvxCommunication. Whether the resource is an RS232 connecting device. Valid values for this field are 0 (No) and 1 (Yes).

Serial number. The manufacturing sequence number of designation of the resource.

Supplied data at IPL flag. Whether the resource supplied data at IPL. Valid values for this field are 0 (No) and 1 (Yes).

Supported on system flag. Whether the resource is supported on the system. Valid values for this field are 0 (No) and 1 (Yes).

Supports assign command flag. Whether the resource supports the assign command. Valid values for this field are 0 (No) and 1 (Yes).

Supports TWERP flag. Whether the resource supports TWERP. Valid values for this field are 0 (No) and 1 (Yes).

Transport type. The transport type identification that is returned. The value for this field is returned as BINARY(2) and CHAR(4). Both variables, BINARY(2) and CHAR(4), are the same. BINARY(2) is the binary representation of the requested value, and CHAR(4) is the character representation of the requested value. The order that the variables are put into storage is binary first and then character. Valid values are:

1 SPD bus
2 PCI bus

Type number. An identifier that represents the object type of this resource.

UA type. The type of unit address that is returned. The value for this field is returned as BINARY(2) and CHAR(2). Both variables, BINARY(2) and CHAR(2), are the same. BINARY(2) is the binary representation of the requested value, and CHAR(2) is the character representation of the requested value. The order that the variables are put into storage is binary first and then character.

Usable memory. The amount of memory, in megabytes, that is available for the resource to use.

User configurable flag. Whether the resource can be configured by the user. Valid values for this field are 0 (No) and 1 (Yes).

User location text. A text string that identifies where this resource is physically located.

Wide screen flag. Whether the resource supports the wide-screen attribute. Valid values for this field are 0 (No) and 1 (Yes).

Write format. The type of write format used by the resource.

X.21 interface. Whether the communications resource is of type X.21. Valid values for this field are 0 (No) and 1 (Yes).

Vary-on wait time. The number of seconds needed for this resource to typically vary on.

V.24 interface. Whether the communications resource is of type V.24. Valid values for this field are 0 (No) and 1 (Yes).

V.35 interface. Whether the communications resource is of type V.35. Valid values for this field are 0 (No) and 1 (Yes).

V.36 interface. Whether the communications resource is of type V.36. Valid values for this field are 0 (No) and 1 (Yes).


Error Messages

Message ID Error Message Text
CPF0B3B E Resource name not found.
CPF0B3F E The reserved area is not set to binary zeros.
CPF0B33 E The handle is not valid.
CPF0B34 E The handle is in wrong state for operation.
CPF0B38 E Resource information not valid.
CPF0B39 E Data requested by key &1 is not applicable.
CPF0B46 E Materialize failed.
CPF0B48 E Number of keys &1 is more than number of keys allowed.
CPF0B3A E Resource name & is not valid.
CPF24B4 E Severe error while addressing parameter list.
CPF3C19 E Error occurred with receiver variable specified.
CPF3C21 E Format name &1 is not valid.
CPF3C24 E Length of the receiver variable is not valid.
CPF3C90 E Literal value cannot be changed.
CPF3CF1 E Error code parameter not valid.
CPF9872 E Program or service program &1 in library &2 ended. Reason code &3.


API introduced: V3R6
Top | Configuration APIs | API by category