Microsoft KB Archive/21285

2.1 and 2.2 REBUILD Returns MS-DOS ERRORLEVEL Exit Codes

PSS ID Number: Q21285 Article last modified on 04-21-1993

2.10 2.20 MS-DOS

Summary: REBUILD.EXE from COBOL Version 2.1 or 2.2 sets the following exit codes at termination: 0 = No error 1-33 = ISAM error codes as defined in the interface 200 = Syntax error in command line 201 = Couldn’t open/close input file 202 = Couldn’t open/close output file 203 = User aborted REBUILD These exit codes may be detected in MS-DOS batch processing (.BAT) files with the IF ERRORLEVEL batch command.

Additional reference words: 2.10 2.20 Copyright Microsoft Corporation 1993.