cobol2.hlp (Table of Contents; Topic list)
RTNCODE-SIZE Details (↑ Object Code)
 Key Summary                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The possible values of integer are:
 
      2  PIC S9(4) COMP: size 2 bytes, aligned on a 2-byte boundary.
      4  PIC S9(8) COMP: size 4 bytes, aligned on a 4-byte boundary.
 
     If a program with a 4-byte RETURN-CODE calls a program with a
     2-byte RETURN-CODE, then on return the value from the called
     program is in the lower two bytes of the 4-byte RETURN CODE. The
     content of the upper two bytes is undefined.
 
     If a program with a 2-byte RETURN-CODE calls a program with a
     4-byte RETURN-CODE, then on return the lower two bytes of the
     value from the called program are in the 2-byte RETURN-CODE. The
     content of the upper two bytes is lost.
                                    -♦-