Compressed Record Image Format (Windows, UNIX, Linux Sources)
A compressed record image contains only the key (primary, unique, KEYCOLS) and the columns that changed in the processed row. By default, trail records written by processes on Windows and UNIX systems are always compressed. The format of a compressed record is as follows:
column_indexcolumn_lengthcolumn_data[...]
Where:
-
column_indexis the ordinal index of the column within the source table (2 bytes). -
colum_lengthis the length of the data (2 bytes). -
column_datais the data, includingNULLorVARCHARlength indicators.
Enscribe records written from the NonStop platform may be compressed. The format of a compressed Enscribe record is as follows:
field_offset field_length field_value[...]
Where:
-
field_offsetis the offset within the original record of the changed value (2 bytes). -
field_lengthis the length of the data (2 bytes). -
field_valueis the data, includingNULLorVARCHARlength indicators.
The first field in a compressed Enscribe record is the primary or system key.