Microsoft KB Archive/49491

From BetaArchive Wiki

Return Codes from COBOL 3.00 CALL X“91” Special Functions

PSS ID Number: Q49491 Article last modified on 11-16-1992

3.00 3.00a | 3.00 3.00a MS-DOS | OS/2

Summary: The CALL X“91” in COBOL 3.00 uses a “result” parameter that is documented on Page 8-9 of the “Microsoft COBOL Compiler 3.00: Operating Guide” for Versions 3.00 and 3.00a as follows: …result is a PIC 99 COMP-X field that contains zero if the call is successful, or nonzero if not successful. The number returned for nonsuccessful calls varies according to function. This should be corrected to say that the CALL X“91” special functions always return one of only two result codes: 0 = function successful 1 = function unsuccessful An unsuccessful result code usually indicates that one or more of the parameters to the routine contain an incorrect value. This information applies to Microsoft COBOL Versions 3.00 and 3.00a for MS-DOS and OS/2.

Copyright Microsoft Corporation 1992.