Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

ACCOUNTING

This statement activates accounting.

Definition

A lower-level DBH option of ADMINISTRATION

Function

The DBH option ACCOUNTING activates logging of the accounting of services provided in the different user sessions for BS2000's accounting procedure.

SESAM/SQL generates an accounting record (DBS1 record, see section “Layout of the accounting information”) for each user session.

At the end of the user session, the accounting record is made available in the accounting buffer:

  • In the case of SESAM/SQL UTM applications, SESAM/SQL is notified immediately by the openUTM when the conversation is terminated at openUTM. This generates the DBS1 record.

  • In the case of TIAM or DCAM CALL DML applications, the conversation is terminated at the DBH by means of the appropriate CALL DML statements and the DBS1 record is generated.

  • In the case of TIAM applications the process is terminated at the end of the program run and the DBH is notified. The DBH generates the DBS1 record.

The contents of the accounting buffer are written to the BS2000 accounting file and can be further processed by the RAV accounting procedure.

To make it possible to write to the BS2000 accounting file, the system administrator must ensure that the following requirements are met:

  • MAX-ACCOUNT-RECORDS=*NO-LIMITS for the DBH user ID,

  • The record type DBS1 must be enabled in BS2000 accounting.

In SESAM/SQL UTM applications, the accounting procedure also supplies the UTM accounting fields (UTMK record).

ACCOUNTING

= *OFF / *ON(...)


*ON(...)



|

CPU-TIME = *NO / *YES

Operands

ACCOUNTING = *OFF

Account logging is inactive initially. However, you can activate it during the DBH session. The SET-ACCOUNTING-PARAMETER administration statement is provided to carry out this function (see "SET-ACCOUNTING-PARAMETER").

ACCOUNTING = *ON(...)
RAV account logging is activated immediately.

CPU-TIME = *NO / *YES
Turns CPU-time counting on/off.