Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
COMP-6 Details (↑ Choosing Run-time Behavior)
◄Key► ◄Summary► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
The possible values of integer are:
1 A binary format is used for COMP-6 data, as described in the
appendix "Ryan McFarland COBOL V2.0 Syntax Support" in your
Language Reference.
2 Packed decimal format is used. If the item is signed, the format
identical to COMP-3. If the item is unsigned, no sign field is
present. For example:
PIC 99 COMP-6 VALUE 99 is stored in one byte as x"99"
PIC S99 COMP-6 VALUE 99 is stored in two bytes as x"099c"
Even if you specify the COMP-6 directive, the reserved word COMP-6 is
recognized only if it belongs to a chosen dialect, or if
ADDRSV"COMP-6" is specified.
See also ◄ADDRSV►
-♦-