1 | Qualified job name | Input | Char(26) |
2 | Number of active monitors | Output | Binary(4) |
3 | Size of active monitors array | Input | Binary(4) |
4 | Type of active monitors array | Output | Array(*) of Char(10) |
5 | Memory handle | Output | Char(10) |
6 | Error code | I/O | Char(*) |
The Query SQL Database Monitor (QQQSSDBM) API returns information about the activity of the SQL and the original database monitor. Associated APIs include the following:
None
The job for which status is being requested. The qualified job name has three parts:
Job name | CHAR(10). A specific job name, a generic name, or
one of the following special values:
|
||||
User name | CHAR(10). A specific user profile name. | ||||
Job number | CHAR(6). A specific job number. |
The number of active database monitors. If the number of active monitors is greater than the size of the type of active monitors array allocated by the user, the type of active monitors array is truncated to the size allocated by the user.
The amount of storage (number of character(10) array entries) allocated by the caller for the type of active monitors array parameter.
The types of database monitors that are active. The values may include:
*FILE | The file-based database monitor (STRDBMON) is active |
*SQLMEMORY | The SQL memory-based database monitor (QQQSSDBM) is active. |
The memory handle used for the specified job if the memory-based monitor is active. Only the first 6 characters will be used for naming the memory handle.
This field is blank if the SQL memory-based database monitor is not active.
The structure in which to return error information. For the format of the structure, see Error Code Parameter.
Message ID | Error Message Text |
---|---|
CPF0172 E | Parameters passed on CALL do not match those required. |
CPF1321 E | job &1 user &2 job number &3 not found. |
CPF3CF1 E | Error code parameter not valid. |
CPF436E E | Job &1 user &2 job number &3 is not active. |
Top | Database and File APIs | APIs by category |