Delete Statistics Collections (QDBSTDS, QdbstDeleteStatistics) API


  Required Parameter Group:


  Service Program Name: QDBSTMGR

  Default Public Authority: *USE

  Threadsafe: Yes

The Delete Statistics Collections (QDBSTDS, QdbstDeleteStatistics) API deletes existing, completed statistics collections for a 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 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 STID0100 Input Format and STID0200 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 4-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.


STID0100 Input Format

Delete statistics collections input parameters using internal statistics ID. See Field Descriptions for details of the fields listed.



STID0200 Input Format

Delete statistics collections input parameters using detailed statistics description. 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

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.

Column name. The name of a single column within the statistics collection definition.

Data.; The data returned for the key identifier.

File library name. Where the file for which statistics collections are to be deleted 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 delete statistics collections 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 collections are to be deleted. The file has to be an existing local, single format, physical file.

Internal statistics ID. Together with the qualified file name and member name, this represents a unique ID for the statistics collection to be deleted. See List Statistics Collections (QDBSTLS, QdbstListStatistics) API for additional information.

Note: If set to all X'00', all statistics collections for the file member are deleted.

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

Length of column definition. The length of this column definition.

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

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

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

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

Number of columns. The number of columns within the single statistics collection definition. The maximum value for this number is 1. If set to zero, all statistics collections for the file member are deleted.

Number of key fields available.The number of fields that can be returned in the feedback area.

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

Number of statistics collections deleted. The number of actually deleted statistics collections.

Offset to columns. The offset to the start of the list of column definitions.

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-byte boundary.

Translation table name. The name of the translation table that was specified, when the statistics collection was requested. The translation table does not necessarily have to exist anymore. The name is used for identification purposes only. The Translation table name can also have the following special values: *JOB indicates the value is retrieved from the job; *LANGIDUNQ indicates the unique weight table that corresponds to the LANGID specified in the Translation table library name field is used; *LANGIDSHR indicates the shared weight table that corresponds to the LANGID specified in the Translation table library name field is used; *NONE indicates a translate table is not used.

Translation table library name. The actual name of the translation table library that was used, when the statistics collection was requested. The translation table library does not necessarily have to exist anymore. The name is used for identification purposes only. If the Translation table name field contains the special value of *LANGIDUNQ or *LANGIDSHR, then the Translation table library name field must contain a corresponding language identifier (LANGID).



Error Messages



Related Information



API introduced: V5R2

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