cobol2.hlp (Table of Contents; Topic list)
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
                                    -♦-