The Server Option accounting functions  Appendix A: Customization Options

Chapter 5: Tracing and Accounting

Accounting log

Under IMS TM, mainframe-based accounting stores accounting information in the IMS TM log.

WARNING! The IMS TM log must be set up during customization using IMSLOGTYPE.

Accounting log layout

NoteThe structures of the accounting log have the same layout in CICS as in IMS TM, although the log headers differ slightly.

Table 5-5: Accounting log layout

Position

Field name

Field type

Field description

1-2

acct-length

unsigned 2-byte integer

Record length. The total length of this accounting record. (Maximum size of a CICS record is 256.)

3

acct-type

unsigned byte

Type of record. For the accounting log, this type is always TDS-ACCT-REC.

4

acct-direction

unsigned byte

Reserved for future use.

5-68

Structure containing the following:

acct-key

unsigned byte (max. length = 30)

user_id: Client’s server login ID, from the login packet.

unsigned byte (length = 24)

trace_resid: Trace resource ID. In CICS, this keeps track of who is doing the tracing.

unsigned byte (length=8)

datetime: Date and time the SNA conversation or TCP/IP session started. (TDACCEPT was issued.)

unsigned 2-byte integer

uniquekey: Reserved for future use to ensure record has unique key.

69-82

acct-txp-name

unsigned byte

Transaction name.

83-112

acct-server-id

unsigned byte

TRS name. Name of the TRS sending the current request.

113-142

acct-conn-id

unsigned byte

Connection ID. Name by which the connection is known to TRS.

143-144

Filler

unsigned byte

Filler to allow next entries to be fullwords.

145-148

acct-tot-secs-wall

4-byte integer

Elapsed wall clock time, in seconds, during the SNA conversation or TCP/IP session.

149-152

acct-tot-fracsecs-wall

unsigned 4-byte integer

Elapsed wall clock time, in milliseconds during the SNA conversation or TCP/IP session.

153-156

acct-tot-secs-cpu

4-byte integer

CPU time used, in seconds during the SNA conversation or TCP/IP session.

157-160

acct-tot-fracsecs-cpu

unsigned 4-byte integer

CPU time used, in milliseconds, during the SNA conversation or TCP/IP session.

161-164

acct-tot-sent-bytes

4-byte integer

Total number of TDS bytes sent during an SNA conversation or TCP/IP session.

165-168

acct-tot-sent-packets

4-byte integer

Total number of TDS packets sent during an SNA conversation or TCP/IP session.

169-172

acct-tot-sent-msgs

4-byte integer

Total number of TDS messages sent during an SNA conversation or TCP/IP session.

173-176

acct-tot-sent-rows

4-byte integer

Total number of TDS rows sent during an SNA conversation or TCP/IP session.

177-180

acct-tot-sent-requests

4-byte integer

Total number of RPCs or SQL requests sent during an SNA conversation or TCP/IP session. For the Server Option, this is always 0.

181-184

acct-tot-rcvd-bytes

4-byte integer

Total number of TDS bytes received during an SNA conversation or TCP/IP session.

185-188

acct-tot-rcvd-packets

4-byte integer

Total number of TDS packets received during an SNA conversation or TCP/IP session.

189-192

acct-tot-rcvd-msgs

4-byte integer

Total number of TDS messages received during an SNA conversation or TCP/IP session.

193-196

acct-tot-rcvd-rows

4-byte integer

Total number of TDS rows received during an SNA conversation or TCP/IP session. For the Server Option, this is always 0.

197-200

acct-tot-rcvd-requests

4-byte integer

Total number of RPCs or SQL requests received during an SNA conversation or TCP/IP session.

201-204

acct-tot-rcvd-cancels

4-byte integer

Total number of Cancels or Attentions received during an SNA conversation or TCP/IP session.

205-208

acct-reserved1

4-byte integer

Reserved for future use.

209-212

acct-reserved2

4-byte integer

Reserved for future use.

213-216

acct-reserved3

4-byte integer

Reserved for future use.

217-220

acct-reserved4

4-byte integer

Reserved for future use.

221-236

acct_fill

unsigned byte (length=36)

Filler, to fill out record to 256 bytes.





Copyright © 2005. Sybase Inc. All rights reserved. Appendix A: Customization Options

View this book as PDF