Version 7.4.4

Command Log Formats

This document provides the two command log formats that Adabas supports.

The first format (invoked by CLOGLAYOUT=4) has been in use since Adabas version 4.

The second format (invoked by CLOGLAYOUT=5) is supported only in versions 5.2 and above and is the default format. It includes additional information.

The tables in this appendix refer to the following command types:

Update A1/A4, E1/E4, N1/N2
Simple All non-update commands with a single search argument.
Complex All non-update commands with more than one search argument.

The command type field may contain other information that is unrelated to commands. The flags should therefore be tested with a binary mask

B'xxxx xusc'

where "u" is the update flag bit, "s" is the simple flag bit, and "c" is the complex flag bit.


CLOGLAYOUT=4

Offset Item Length/Format/Description
Hex. Dec. Bytes Format Explanation
0 0 2 binary record length (inclusive)
2 2 2 binary x '0000'
4 4 1 binary
record type (see note 1):
x '00' basic record only
x '01' includes control block
x '02' includes format buffer
x '04' includes record buffer
x '08' includes search buffer
x '10' includes value buffer
x '20' includes ISN buffer
x '40' includes I/O list
5 5 1 binary user priority (from operating system)
6 6 1 binary
command type flags (simple, complex, update):
x '01' simple command
x '02' complex command
x '04' update command
7 7 1 binary number of posted ECBs in command queue
8 8 1 binary reserved
9 9 1 binary thread number
A 10 2 binary number of descriptors updated
C 12 8 alphanumeric job name
14 20 4 binary user ID (see note 2)
18 24 4 binary wall clock time (STCK-format) at the point the command processing is completed by the nucleus
1C 28 4 binary duration (in units of 16 microseconds)
20 32 8
(4 * 2)
binary ASSO/DATA/WORK I/O counts for this command (except blocked ET command I/Os to WORK)
28 40 4 binary Additions 2 field after command execution (can contain response subcodes)
2C 44 2 alphanumeric command option 1 and 2 fields
2E 46 2 alphanumeric command code
30 48 4 binary command ID
34 52 2 binary file number
36 54 2 binary response code
38 56 4 binary ISN
3C 60   end of basic record  
    64 alpha./binary Rest of control block starting with ISN lower limit
    2 binary
alphanumeric
format buffer length (inclusive)
format buffer
    2 binary
alphanumeric
record buffer length (inclusive)
record buffer
    2 binary
alphanumeric
search buffer length (inclusive)
search buffer
    2 binary
alphanumeric
value buffer length (inclusive)
value buffer
    2 binary
alphanumeric
ISN buffer length (inclusive)
ISN buffer
    2 binary I/O list length (inclusive)
    (n x 4) binary I/O list for this command; 4 or 5 bytes are used for each I/O operation, depending on the RABN length used in the database (RABNSIZE):
       
If RABNSIZE=3, byte 1 contains:
01 = Associator read
02 = Associator write
03 = Data read
04 = Data write
05 = Work read
06 = Work write
Bytes 2-4 contain the 3-byte RABN that is read or updated.
       
If RABNSIZE = 4, byte 1 contains:
81 = Associator read
82 = Associator write
83 = Data read
84 = Data write
85 = Work read
86 = Work write
Bytes 2-5 contain the 4-byte RABN that is read or updated.

Notes:

  1. The value in the record type field (offset +4) determines which parts of the record mentioned above are present.
  2. For CICS, Shadow, and Westi TP monitor users, Adabas version 5 does not provide a unique ID value in this field. Users of these TP monitors must revise programs requiring a unique ID value to obtain it from the command queue element's (CQE's) CQEUID field. User exit 4 provides the CQE address at location 12(R1).

Top of page

CLOGLAYOUT=5

Explanation of Log Record Types

Command log layout 5 comprises two log record types:

Fields with Alternate Interpretations

The following fields have alternate interpretations for each log record type:

Remote Nucleus ID Field

A field has been added at offset 4C for both log record types:

Offset Item Length/Format/Description
Hex. Dec. Bytes Format Explanation
4C 76 2 binary the ID of the remote nucleus

Command-Executing Nucleus ID Field

A field has been added at offset 58 for both log record types:

Offset Item Length/Format/Description
Hex. Dec. Bytes Format Explanation
58 88 2 binary the ID of the nucleus executing the command
60 90 2 - reserved (x'0000 0000')

For both log record types, this field provides the ID of the nucleus executing the command. In a cluster environment, the nucleus ID is either the SMPID or the PLXID; in a noncluster environment, the nucleus ID is zero (0).

Zap AY742008: Enhanced I/O-List

If you apply optional zap AY742008, the enhanced I/O-List is displayed. In this case, an I/O-List element contains not only the control byte and the RABN, but also the name of the volume where the RABN resides.

With zap AY742008, the control byte is changed. The X'40' bit is switched on. Six-byte volume names are attached after the I/O list.

For example, if RABNSIZE = 3 and byte 1 contains:

41 = Associator read
42 = Associator write
...
46 = Work write

In this case, bytes 2-4 contain the three-byte RABN that is read or updated and bytes 5-10 contain the volume name where the RABN resides.

In another example, if RABNSIZE = 4 and byte 1 contains:

C1 = Associator read
C2 = Associator write
... 
C6 = Work write

Bytes 2-5 contain the four-byte RABN that is read or updated and bytes 6-11 contain the volume name where the RABN resides.

Adabas Basic Log Record Type (x'0001')

Offset Item Length/Format/Description
Hex. Dec. Bytes Format Explanation
0 0 2 binary record length (inclusive)
2 2 2 - reserved (x '0000')
4 4 2 binary og record type:
        x '0001': Adabas basic log record
6 6 2 - reserved (x '0000')
8 8 8 binary time in store clock (STCK) format when request was logged
10 16 1 binary
buffer types:
x '00' basic record only
x'01' includes Adabas control block
x '02' includes format buffer
x '04' includes record buffer
x '08' includes search buffer
x '10' includes value buffer
x '20' includes ISN buffer
x '40' includes I/O list
x '80' includes user exit B data
11 17 1 binary dispatching priority (from operating system)
12 18 1 binary
command type (simple, complex, update - see note):
x '01' simple command
x '02' complex command
x '04' update command
13 19 1 binary number of posted ECBs in command queue
14 20 1 binary thread number
15 21 1 binary user buffer (UB) flag (see DSECT "UB")
16 22 2 binary number of descriptors updated
18 24 8 alphanumeric job name
20 32 28 binary communication ID
3C 60 4 binary elapsed time for request in command queue (in units of 16 microseconds)
40 64 4 binary unique command sequence number
44 68 2 binary database ID
46 70 2 binary Associator I/O operation count
48 72 2 binary Data I/O operation count
4A 74 2 binary Work I/O operation count
4C 76 2 binary ID of the remote nucleus that sent the command
4E 78 1 binary architecture byte of caller (reserved)
4F 79 5 - reserved (x'0000 0000 00')
54 84 4 binary Adabas Review
58 88 2 binary ID of the nucleus executing the command
60 90 2 - reserved (x'0000 0000')
(Beginning of Adabas control block log area:)
5C 92 2 - reserved (x'0000')
5E 94 2 alphanumeric command code
60 96 4 alphanumeric command ID
64 100 2 binary file number
66 102 2 binary response code
68 104 4 binary ISN
6C 108 4 binary ISN lower limit
70 112 4 binary ISN quantity
74 116 2 binary format buffer length
76 118 2 binary record buffer length
78 120 2 binary search buffer length
7A 122 2 binary value buffer length
7C 124 2 binary ISN buffer length
7E 126 1 alphanumeric command option 1
7F 127 1 alphanumeric command option 2
80 128 8 alphanumeric additions 1 field
88 136 4 alphanumeric additions 2 field (returned lengths and response subcodes)
8C 140 8 alphanumeric additions 3 field (password)
94 148 8 alphanumeric additions 4 field (cipher code)
9C 156 8 alphanumeric additions 5 field (global format ID/OPEN: timeout values)
A4 164 4 binary command time in thread (in units of 16 microseconds)
A8 168 4 binary user area
(Beginning of optional log record area:)
AC 172 2 binary
alphanumeric
format buffer length (inclusive)
AE 174 2 binary
alphanumeric
record buffer length (inclusive)
B0 176 2 binary
alphanumeric
search buffer length (inclusive)
B2 178 2 binary
alphanumeric
value buffer length (inclusive)
B4 180 2 binary
alphanumeric
ISN buffer length (inclusive)
B6... 182.. 2 binary I/O list length (inclusive)
    (n x 4) binary I/O list for this command; 4 or 5 bytes are used for each I/O operation, depending on the RABN length used in the database (RABNSIZE):
       
If RABNSIZE = 3, byte 1 contains
01 = Associator read
02 = Associator write
03 = Data read
04 = Data write
05 = Work read
06 = Work write
Bytes 2-4 contain the 3-byte RABN that is read or updated.
       
If RABNSIZE = 4, byte 1 contains
81 = Associator read
82 = Associator write
83 = Data read
84 = Data write
85 = Work read
86 = Work write
        Bytes 2-5 contain the 4-byte RABN that is read or updated.

Asynchronous Request Log Record Type (x'0002')

Offset Item Length/Format/Description
Hex. Dec. Bytes Format Explanation
0 0 2 binary record length (inclusive)
2 2 2 - reserved (x '0000')
4 4 2 binary log record type:
        x '0002': asynchronous request log record
6 6 2 - reserved (x '0000')
8 8 8 binary time in store clock (STCK) format when request was logged
10 16 1 binary
buffer types:
x '00' basic record only
x'01' includes Adabas control block
x '02' includes format buffer
x '04' includes record buffer
x '08' includes search buffer
x '10' includes value buffer
x '20' includes ISN buffer
x '40' includes I/O list
x '80' includes user exit B data
11 17 1 binary dispatching priority (from operating system)
12 18 1 binary
command type (simple, complex, update - see note):
x '01' simple command
x '02' complex command
x '04' update command
13 19 1 binary number of posted ECBs in command queue
14 20 1 binary thread number
15 21 1 binary user buffer (UB) flag (see DSECT "UB")
16 22 2 binary number of descriptors updated
18 24 8 alphanumeric job name
20 32 28 binary communication ID
3C 60 4 binary elapsed time for request in command queue (in units of 16 microseconds)
40 64 4 binary unique command sequence number
44 68 2 binary database ID
46 70 2 binary number of internucleus destinations
48 72 2 binary internucleus messaging return code
4A 74 2 binary internucleus messaging reason code
4C 76 2 binary ID of the remote nucleus to which the command is sent
4E 78 1 binary architecture byte of caller (reserved)
4F 79 5 - reserved (x'0000 0000 00')
54 84 4 binary Adabas Review
58 88 2 binary ID of the nucleus executing the command
60 90 2 - reserved (x'0000 0000')
(Beginning of Adabas control block log area:)
5C 92 2 - reserved (x'0000')
5E 94 2 alphanumeric command code
60 96 4 alphanumeric command ID
64 100 2 binary file number
66 102 2 binary response code
68 104 4 binary ISN
6C 108 4 binary ISN lower limit
70 112 4 binary ISN quantity
74 116 2 binary format buffer length
76 118 2 binary record buffer length
78 120 2 binary search buffer length
7A 122 2 binary value buffer length
7C 124 2 binary ISN buffer length
7E 126 1 alphanumeric command option 1
7F 127 1 alphanumeric command option 2
80 128 8 alphanumeric additions 1 field
88 136 4 alphanumeric additions 2 field (returned lengths and response subcodes)
8C 140 8 alphanumeric additions 3 field (password)
94 148 8 alphanumeric additions 4 field (cipher code)
9C 156 8 alphanumeric additions 5 field (global format ID/OPEN: timeout values)
A4 164 4 binary command time in thread (in units of 16 microseconds)
A8 168 4 binary user area
(Beginning of optional log record area:)
AC 172 2 binary
alphanumeric
format buffer length (inclusive)
AE 174 2 binary
alphanumeric
record buffer length (inclusive)
B0 176 2 binary
alphanumeric
search buffer length (inclusive)
B2 178 2 binary
alphanumeric
value buffer length (inclusive)
B4 180 2 binary
alphanumeric
ISN buffer length (inclusive)
B6... 182.. 2 binary I/O list length (inclusive)
    (n x 4) binary I/O list for this command; 4 or 5 bytes are used for each I/O operation, depending on the RABN length used in the database (RABNSIZE):
       
If RABNSIZE = 3, byte 1 contains:
01 = Associator read
02 = Associator write
03 = Data read
04 = Data write
05 = Work read
06 = Work write
Bytes 2-4 contain the 3-byte RABN that is read or updated.
       
If RABNSIZE = 4, byte 1 contains:
81 = Associator read
82 = Associator write
83 = Data read
84 = Data write
85 = Work read
86 = Work write
        Bytes 2-5 contain the 4-byte RABN that is read or updated.

Top of page