Update Statistics Collections (QDBSTUS, QdbstUpdateStatistics) API


  Required Parameter Group:


  Service Program Name: QDBSTMGR

  Default Public Authority: *USE

  Threadsafe: Yes

The Update Statistics Collection (QDBSTUS, QdbstUpdateStatistics) API allows the user to update the attributes and to refresh the data of an existing single statistics collection.

In addition, the QdbstUpdateStatistics API allows to block all future system initiated statistics collection requests for a specific database file member.


Section overview


Authorities and Locks

ASP Device Authority
*EXECUTE
File Authority
*OBJALTER, *OBJOPR
File Library Authority
*EXECUTE
File Lock
*SHRRD

Required Parameter Group

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 four-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 STIU0100 Input Format for more information.

Feedback area
OUTPUT; CHAR(*)

The buffer to receive feedback data. See Feedback Area Format for more information. The buffer content has to start at a four-byte boundary.

Length of feedback area
INPUT; BINARY(4)

The length of the feedback area buffer provided. The required minimum length is 16, to fit the feedback area header (see Feedback Area Format).

Feedback keys
INPUT; ARRAY(*) OF BINARY(4)

The list of fields to return in the feedback area. For a list of valid keys see Valid Keys - Feedback.

Number of feedback keys
INPUT; BINARY(4)

The number of fields to return in the feedback area. If zero is specified, all other feedback area parameters (Feedback area, Length of feedback area, and Feedback keys) are ignored.

Error code
I/O; CHAR(*)

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


STIU0100 Input Format

Update statistics collection input parameters. See Field Descriptions for details of the fields listed.



Valid Keys - Update

Use the following keys to specify the fields to be updated when using the STIU0100 Input Format. Each key can only be specified once. See Field Descriptions for details of the fields listed.



Valid Keys - Feedback

Use the following keys to specify the fields to be returned in the feedback area. Each key can only be specified once. See Field Descriptions for details of the fields listed.



Feedback Area Format

The fields returned in the feedback area are returned in the order requested. See Field Descriptions for details of the fields listed.



Field Descriptions

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

ASP device name. The name of one auxiliary storage pool (ASP) device in the ASP group in which the library and file are located. The ASP device must have a status of 'Available'. The documented authority is required for the given ASP and the primary of the corresponding ASP group. The name can be a specific ASP device name (for an ASP with a number greater than 32), or one of the following special values:

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

Block system statistics collections option. Whether future system initiated (automatic) statistics collection create or update requests will be allowed for this database file member. The possible values are:



Note: The internal statistics ID is ignored for this option, which operates at file member level, but the ID has to be a valid statistics ID, if any other update option besides the block option is specified.

Note: Currently active system requests will not be affected by changing this option. See Cancel requested statistics collections (QDBSTCRS, QdbstCancelRequestedStatistics) API.

Data (in feedback area format). The data returned for the key identifier.

Data (in STIU0100 input format). The data with which the field is to be updated.

File library name. Where the file for which statistics collection attributes are to be updated is located. You can use these special values for the library name, if the ASP Device Name is *:

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

File member name. The name of the file member to be used for the statistics collection update request.

This value can be a specific file member name or one of the following special values:

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

File name. The name of the file for which statistics collection attributes are to be updated. The file has to be an existing local, single format, physical file.

Internal request ID. If the update key Statistics Data is specified and its value is *BACKGROUND, this field is an unique ID for the statistics data update requested here. The request ID stays valid until the statistics data update is completed and the ID can be used on the Cancel Requested Statistics Collections (QDBSTCRS, QdbstCancelRequestedStatistics) API.

Note: The ID is stored in binary, non printable form in the character array.

Internal statistics ID. Together with the qualified file name and member name, this represents a unique ID for the statistics collection to be updated. See List statistics collections (OPM, QDBSTLS; ILE QdbstListStatistics) API and Request statistics collections (OPM, QDBSTRS; ILE QdbstRequestStatistics) API.

Note: The ID is stored in binary, non printable form in the character array.

Key identifier (in the STIU0100 input format). The field to be updated. For a list of valid keys see Valid Keys - Update.

Key identifier (in the feedback area format). The field returned. For a list of valid keys see Valid Keys - Feedback.

Keys of fields to update. The list of fields to update per list entry. For a list of valid keys see Valid Keys - Update.

Length of data (in feedback area format). The length of the data returned for the field.

Length of data (in STIU0100 input format). The length of the data the field is to be updated with.

Length of field information. Total number of bytes being passed for the field to be updated.

Length of field information returned. Total number of bytes returned for this field in the feedback area.

Number of bytes available. Number of bytes that could be returned in the feedback area.

Number of bytes returned. Number of bytes returned in the feedback area.

Number of key fields available. Number of fields that could be returned in the feedback area.

Number of key fields returned. Number of fields returned in the feedback area.

Number of fields to update. The number of fields to update.

Offset to fields to update. Offset to the start of the array of fields to update.

Previous aging mode. The aging mode in effect before the update.

Note: If the aging mode was not requested to be updated, the aging mode returned will be blank.

Previous block system statistics collections option. The block option in effect before the update.

Note: If the block option was not requested to be updated, the block option returned will be blank.

Previous statistics collection name. The name in effect before the update.

Note: If the statistics collection name was not requested to be updated, the statistics collection name returned will have a length of 0.

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

Reserved (in feedback area format). Structure padding to guarantee alignment to the next four bytes boundary.

Reserved (in STIU0100 input format). Structure padding to guarantee alignment to the next four bytes boundary.

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

Statistics data. The statistics data is to be refreshed. The key value is the collection mode (see also the Request statistics collections (OPM, QDBSTRS; ILE QdbstRequestStatistics) API), under which the refresh should take place. The possible values are:



Error Messages



Related Information



API introduced: V5R2

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