Dump SQL Database Monitor (QQQDSDBM) API


  Required Parameter Group:

  Service Program Name: QQQDSDBM

  Default Public Authority: *USE

  Threadsafe: Conditional; see Usage Notes.


The Dump SQL Database Monitor (QQQDSDBM) API dumps the SQL database monitor that has been gathered. The data that is gathered will be all data that has been committed (if the job is under commitment control) or based on a 5-minute timer. Associated APIs include the following:


Authorities and Locks

Current User Profile
*JOBCTL
Library Authority for New File
*ADD and *READ
Library Authority for Existing File
*EXECUTE
Existing File
*CHANGE and *OBJALTER

Required Parameter Group

Memory area to dump
INPUT; CHAR(10)

Memory area to dump. The possible values are:


Job or memory handle name
INPUT; CHAR(26)

This parameter depends on the value specified for the memory area to dump parameter. If the value is:


Number of types to dump
INPUT; BINARY(4)

The number of types passed in the subtypes and files array.

Subtypes and files array
INPUT; Array(*) of CHAR(30)

The list of all subtypes to dump and their associated receiving files. The format of each array element is:

CHAR(10). Key to Dump.

The possible values are:


CHAR(20). File name.

The name of the file to receive the data. The first 10 characters contain the file name, and the second 10 characters contain the library name. A member name of *FIRST is assumed. The following special values can be used for the library name:

If the file already exists, it will be cleared prior to dumping the data. The files will be created with authority of owner(*ALL) and PUBLIC(*CHANGE), and they are owned by the profile of the job calling QQQDSDBM.


Note: If a subtype is specified multiple times, only the first occurrence of the subtype and the associated file name is honored. The duplicates 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.


Usage Notes

This function is threadsafe but not thread enabled. Database monitor data is collected in the threaded process but summarized at the job level.

The QQQDSDBM API does not force a clear operation (QQQCSDBM) of the memory. Data will continue to be added to memory until the QQQCSDBM or QQQESDBM API is called.


Error Messages



API introduced: V4R3

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