Previous Topic: Implicit Record LocksNext Topic: Run Units, Locks, and Database Transactions


Collecting Database Statistics

You can collect database run-time statistics with the ACCEPT DATABASE-STATISTICS statement. You can issue this statement any number of times during a run unit, It returns a copy of the IDMS statistics block to a specified location in program variable storage.

Although the ACCEPT DATABASE-STATISTICS statement can be issued any number of times during a run unit, IDMS statistics are cumulative; resetting of IDMS statistics occurs only upon issuing a FINISH or ROLLBACK statement.

Uses of Database Statistics

Possible uses of database statistics include:

For more information on collecting database run-time statistics and individual IDMS statistics block fields, see the language-specific CA IDMS DML Reference Guide.

'Performance Monitor users'. You can use CA IDMS Performance Monitor to collect statistics about program execution. For more information, see the CA IDMS Performance Monitor User Guide.