List Requested Statistics Collections (QDBSTLRS, QdbstListRequestedStatistics) API


  Required Parameter Group:


  Service Program Name: QDBSTMGR

  Default Public Authority: *USE

  Threadsafe: Yes

The List Requested Statistics Collections (QDBSTLRS, QdbstListRequestedStatistics) API lists details for not yet completed, or not successfully completed statistics collection requests, requested by a call to the Request statistics collections (OPM, QDBSTRS; ILE QdbstRequestStatistics) API, the Update Statistics Collection (QDBSTUS, QdbstUpdateStatistics) API, or automatically by the system. The generated list replaces any existing list in the user space.


Section overview


Authorities and Locks

User Space Authority
*CHANGE
User Space Library Authority
*EXECUTE
User Space Lock
*EXCLRD
ASP Device Authority
*EXECUTE
File Authority
*OBJOPR
File Library Authority
*EXECUTE

Required Parameter Group

Qualified user space name
INPUT; CHAR(20)

The user space that is to receive the generated list and the library in which it is located. 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 of output
INPUT; CHAR(8)

The format of the statistics collections list to be returned. If Format STOP0100 is specified, the fields that were selected by the caller are returned for each statistics collection request in the list. Possible format names are:

Refer to Format of the Generated List and STOP0100 Output Format for more information.

Input data
INPUT; CHAR(*)

The buffer containing the input parameters according to the format of input data parameter. The buffer content has to start at a 4-byte boundary.

Length of input data
INPUT; BINARY(4)

The length of the input data buffer provided.

Format of input data
INPUT; CHAR(8)

The format of the input data. Possible values are:

Refer to STIP0100 Input Format for more information.

Error code
I/O; CHAR(*)

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


STIP0100 Format

The following table shows the input parameters for this API. See Field Descriptions for details of the fields listed.



Valid Keys - Request Output

The keys listed below are used to determine in the STIP0100 Input Format what will be returned per list entry in the List Data Section - STOP0100 Output Format. Each key can only be specified once. See Field Descriptions for details of the fields listed.

Each list entry returned in the output format describes a single request and can be thought of as two groups of related keys:

Group 1: The following keys describe information at request level and are repeated in list entries describing the single statistics collections within a request:

Group 2: The following keys describe information at statistics collection level for a request:



Format of the Generated List

The statistics collections list consists of:

The user area and generic header are described in User spaces. The remaining items are described in the following sections.


Input Parameter Section

The following information is returned in the input parameter section. For detailed descriptions of the fields in this table, see Field Descriptions.



Header Section

For detailed descriptions of the fields in this table, see Field Descriptions.


List Data Section - STOP0100 Output Format

The following information is returned in the list data section per statistics collection list entry for Format STOP0100. The fields are returned in the order requested. See Field Descriptions for details of the fields listed.



Field Descriptions

ASP device name used. The actual auxiliary storage pool device name used, after possible resolution of special values.

Note: If the API caller does not have the documented ASP Device Authority for the ASP device, the ASP device name returned will be set to all blanks.

Aging mode. Whether the system is allowed to age or remove the statistics collection. The possible values are:

Column names. The array of names of the columns within the statistics collection, in the same order as at request time. Each array elements also corresponds to the array element at the same position in the Qualified translation table names field. The array dimension is given by the Number of columns field.

Note: If the API caller does not have the documented ASP Device Authority , File Authority, and File Library Authority for the file containing these specific columns, the column names returned will be set to all blanks.

Continuation handle (input section). The handle used to continue from a previous call to this API that resulted in partially complete information. You can determine if a previous call resulted in partially complete information by checking the Information Status variable in the generic user space header following the API call.

If the API is not attempting to continue from a previous call, this parameter must be set to blanks. Otherwise, a valid continuation value must be supplied. The value may be obtained from the list header section of the user space used in the previous call. When continuing, the first entry in the returned list is the entry that immediately follows the last entry returned in the previous call.

Continuation handle (header section). A continuation point for the API. This value is set based on the contents of the Information Status variable in the generic header for the user space. The following situations can occur:

Data. The data returned for the key identifier.

Displacement to specified fields to return. The displacement to the start of the array of specified fields to return.

Note: This is not the offset specified on input, but the displacement within the input parameter section. See Offset to fields to return specified instead.

Estimated time. The estimated time in seconds to collect the statistics for this request. This will be zero for all request statuses but '0' (pending),'1' (active), and '3' (candidate).

Note: For request status '1' (active), the estimate is for the complete request, not for the remaining work to be done. The also returned progress percentage can be used to calculate the estimated time left before the request is complete.

File library name used. The actual file library name used, after possible resolution of special values.

Note: If the API caller does not have the documented ASP Device Authority and File Library Authority for this specific library, the library name returned will be set to all blanks.

File member name used. The actual file member name used, after possible resolution of special values.

Note: If the API caller does not have the documented ASP Device Authority, File Authority, and File Library Authority for the file containing this specific member, the file member name returned will be set to all blanks.

File name used. The actual file name used.

Note: If the API caller does not have the documented ASP Device Authority, File Authority, and File Library Authority for this specific file, the file name returned will be set to all blanks.

Internal request ID. Uniquely identifies a requested statistics collections. See the Request statistics collections (OPM, QDBSTRS; ILE QdbstRequestStatistics) API.

Key identifier. The field returned. For a list of valid keys see Valid Keys - Request output.

Keys of fields to return. The list of fields to return per list entry. For a list of valid keys see Valid Keys - Request output.

Length of data. The length of the data returned for the field.

Length of field information returned. Total number of bytes returned for this field.

Length of list entry. Number of bytes returned for this list entry.

List filter option. The statistics collection requests to return. The filter option is a bit field and can be computed by adding up desired single filter values from the following list:

For information on the request status, see the Request Status field.

Message ID. For request status '2' (error) only: A message ID describing the error.

Message File. For request status '2' (error) only: The message file for the Message ID.

Message File Library. For request status '2' (error) only: The library where the Message File is located.

Message Data. For request status '2' (error) only: The message field data for the Message ID.

Name of requesting user profile. The name of user profile that requested the statistics collection. The name will be *SYS for statistics collections automatically requested by the system.

Number of columns. Number of columns within the single statistics collection.

Number of fields to return. The number of fields to return for each list entry.

Number of key fields returned. Number of fields actually returned.

Offset to fields to return specified. Offset to fields to return as specified on the call of the API.

Progress percentage. For request status '1' (active) only: The percentage of completion of the request. For all other request statuses this will be zero.

Qualified job name. Depending on the request status, the following values are valid:

The qualified job name has three parts:

Qualified translation table names. The array of names of the translation tables that were specified, when the statistics collection was requested, in the same order as requested. Each array elements corresponds to the array element at the same position in the Column names field. The first 10 characters contain the translation table name, and the second 10 characters contain the name of the library where the table is located. The array dimension is given by the Number of columns field.

Note: For system initiated requests, the translation table name and the library can be set to the following special value:

Request status. The current status of the requested statistics collection. The possible values are:

Reserved. Reserved for future use. If this field is input, the field must be set to hexadecimal zeros.

Reserved (in STOP0100 output format). Structure padding to guarantee alignment to the next 4-byte boundary.

Running number of statistics collections for internal request ID. Current index of the statistics collection definition for this request. The statistics collection definitions will be returned in the same order as requested.

Statistics collection name. A name unique among all statistics collections for the file member.

Thread ID. For request status '1' (active) only: The thread that is currently processing the request.

Time stamp. Depending on the request status, this time stamp shows:

Time stamp of request. The time stamp showing when the statistics collection was requested.

Total number of statistics collections for internal request ID. The number of statistics collection definitions for this request, identified by the internal request ID.

User space name specified. The user space name as specified on the call of the API.

User space library name specified. The user space library name as specified on the call of the API.



Error Messages



Related Information



API introduced: V5R2

[ Back to top | Database and File APIs | APIs by category ]