Previous Topic: Supplying Accounting InformationNext Topic: Example


Using Accounting Information

The supplied accounting information is passed to the back end, and is stored in an area accessible from the PTE for use by accounting and security exits.

For example, the information could be used by either exit 4 or 5 to change header information in the statistics block described by #STRDS.

The following table describes how the accounting data can be found:

Field Name

Control Block

Comments

TCELTEA

TCE

Points to the LTE. Determine whether it is a CAICCI-related LTE (type is LTEBULK).

LTEPTEA

LTE

Points to the PTE.

PTELACCT

PTE

Points to a 32-byte accounting information area. This area must be binary zeros if no accounting information was passed from the PC or if the front end is not a PC.

When using the Type 4 JDBC driver with CA IDMS r16 SP2 or later, you can add this information to the user profile at sign on. Define a system or user profile attribute and specify the ACCT=profile-key-name option in the listener PTERM definition. This allows SQL statements to access the accounting information using the PROFILE function. Procedures written in COBOL or CA ADS can use the IDMSIN01 GETPROF callable service to access the accounting information.

Note: