Previous Topic: 4.2.4.2.3 Database Cycle Retention Statement(Cycles)

Next Topic: 4.2.4.3 MSI Definition Statements

4.2.4.2.4 Compression Statement (COMPRESS)

The Compression statement defines whether or not the file is
eligible to be compressed when the compression facility is
activated.  It is an optional statement; if it is not
present, the file is not eligible for compression.

STATEMENT FORMAT

If the COMPRESS statement is present, it MUST follow the
CYCLES statement in cccGENIN.

The COMPRESS statement is coded with the keywords starting in
column 1.  Parameters are free-form and can continue through
column 72.  Statement continuation is not supported.  The
following describes the format and coding rules for the
COMPRESS statement.

  COMPRESS  x   d   w   m   y   (text)
     |      |   |   |   |   |   |
     |      |   |   |   |   |   +-- Never Compress
     |      |   |   |   |   |       Designation
     |      |   |   |   |   |
     |      |   |   |   |   +-- Years
     |      |   |   |   |
     |      |   |   |   +-- Months
     |      |   |   |
     |      |   |   +-- Weeks
     |      |   |
     |      |   +-- Days
     |      |
     |      +-- Detail
     |
     +-- COMPRESS - statement identification

STATEMENT OPTION DEFINITIONS

Valid values for the keywords are Y (yes) and N (no) for the
timespan keywords.  A value of Y indicates that the file's
data can be compressed in that timespan and a value of N
indicates that the file's data cannot be compressed in that
timespan.

If the file should not be compressed, then the timespan
keywords are set to N and the never compress text is present.
You should NOT override this designation because files are
usually designated as not eligible for compression for the
following reasons:

 - compressing the file negatively affects performance.

 - the file uses options that are not compatible with
   compression, such as POINT.

SAMPLE  STATEMENTS

The statement

COMPRESS Y Y Y Y N

means that the data in the file's DETAIL, DAYS, WEEKS, and
MONTHS timespans is eligible for compression when the
compression facility is activated.  Data in the YEARS
timespan files are not eligible for compression.

The statement

COMPRESS N N N N N (FILE COMPRESSION NOT SUPPORTED)

means that the file is not a candidate for compression.  Its
data should not be compressed, and this specification should
not be changed.