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