Retrieve IOA Cache Battery Information (QSMRTVBTC) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

The Retrieve IOA Cache Battery Information (QSMRTVBTC) API returns the IOA cache battery information for I/O Adapters(IOAs) that power the cache battery. This API does not return information for IOAs which do not have a cache. This API only retrieves IOA cache battery information for the partition where it is used.


Authorities and Locks

None.


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 of the receiver variable parameter correctly. As a result, the API returns only the complete data for a message that the area can hold. If there was space for all but 5 bytes of the message text then none of the information for that message would be returned.

The entries are returned in the format specified in the Format name parameter. See CBTT0100 Format for a description of this parameter.

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.

Format Name
INPUT; CHAR(8)

The format of the returned message information. You must use this format:

Time zone
INPUT; CHAR(10)

Specifies the time zone that the time and date data is input and returned in. valid values for this field are:

Error code
I/O; CHAR(*)

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


CBTT0100 Format

CBTT0100 Format

The following table shows the information returned in the receiver variable for the CBTT0100 format. For detailed descriptions of each field, see the Field Descriptions.

The structure defined by this format is repeated for each entry returned.

Field Descriptions

Adjusted power on time. The number of days that the IOA cache battery has been powered on, which the IOA has adjusted based on an internal IOA algorithm.

Battery type. The type of battery which charges the IOA cache. The meaning of each type is:

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.

Card position. The card position of the I/O Adapter.

CCSID. The coded character set identifier in which the character information is returned.

Data in cache written to disk. An indicator showing if the data in the IOA cache has been successfully written onto the disk media.

Date retrieved. The date on which the information was retrieved, in CYYMMDD(century, year, month, and day) format.

Days to error. The number of days until the battery goes into an error status, thus stopping the IOA caching function.

Days to warning. The number of days until the battery sends a warning about its condition.

Entry Number. The identifier for the entry in the array.

Error state. An indicator showing if an error has occurred on the IOA battery which powers the IOA cache. The meaning of each state is:

Frame ID. The frame identifier of the position of the I/O Adapter.

IOA cache battery information entry. The beginning of an array of entries containing information retrieved for the IOAs. No partial entries will be returned. The location of the first entry should be calculated using the offset to first entry field.

IOA model. The model of the I/O Adapter.

IOA Resource Name.  T he resource name of the I/O Adapter.

IOA Serial Number.  T he serial number of the I/O Adapter.

IOA Type. The type of the I/O Adapter.

Length of entry. The length in bytes of each entry in the IOA cache battery information entry. This length should be used for indexing the entries, rather than assuming the length as defined in the template.

Maintainable. An indictor showing if the battery can be maintained. The meaning of maintainable is:

Number of entries. The number of IOAs which have cache batteries. The data for each of the IOAs is provided in the IOA cache battery information entry.

Offset to first entry. The length in bytes from the start of the format to the first IOA cache battery information entry.

Partition Name. The name of the partition.

Partition Number. The number of the partition.

Physical location. The physical location of the I/O Adapter.

Power on time. The number of days that the IOA cache battery has been powered on.

System model. The model number of the system.

System name. The name of the system.

System type. The type of the system.

System serial number. The serial number of the system.

Time retrieved. The time at which the data was retrieved, in HHMMSS (hour, minute, and second) format. A 24 hour format is used.

UTC. The Coordinated Universal Timestamp when the data was retrieved.

Version. The version field returns the value indicating how the location information is to be presented. The meaning of the version is:


Error messages




API introduced: V7R2