Microsoft KB Archive/21148

Command Line Instructions for REBUILD in COBOL 1.x and 2.x

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

1.12 2.00 2.10 2.20 MS-DOS

Summary: The following are examples of how REBUILD can be used on the command line: 1. Command Line mode - creating key file only REBUILD IXFILE.DAT,,13:52 The file IXFILE.KEY will be created, overwriting any existing IXFILE.KEY, and may be used with IXFILE.DAT in any Microsoft COBOL programs. 2. Command Line mode - creating key and data files REBUILD IXFILE.DAT,NEWIX.DAT,13:52 The files NEWIX.DAT and NEWIX.KEY will be created and may be used in any Microsoft COBOL program of that version. The file IXFILE.KEY, if present, is unchanged. More Information: REBUILD requires you to specify the filename extension (.DAT) for both the input and output filenames. The input and output file arguments for REBUILD are always the name of the data file (not the .KEY file). If you have renamed the data file to have a different extension, REBUILD will also work with the complete new name. This information applies to Microsoft COBOL Compiler Versions 1.12, 2.00, 2.10, and 2.20 for MS-DOS.

Copyright Microsoft Corporation 1992.