COBOL2000 can process compilation units from SAM or ISAM files. If ISAM files are used, they must be cataloged with KEYPOS=5 and KEYLEN=8. The method used to enter a compilation unit into such a file depends on the form in which it is available:
If the compilation unit is already stored on an external volume (e.g. magnetic tape), it can be moved to a cataloged file by using suitable
BS2000 commands (see “Commands” manual [3]); e.g. the COPY-FILE command (for compilation units on magnetic tape) or
utility routines, e.g. ARCHIVE for magnetic tapes.
If a new compilation unit is to be created, the file editor EDT (see the “EDT” manual [19]) can be used. This editor can process both SAM and ISAM files and includes special functions to support the formatted input and subsequent editing of COBOL compilation units. Some of these functions are listed below:
The option of setting tabs enables the programmer to quickly and reliably move to the starting column of the program text area and thus facilitates compliance with the reference format for COBOL programs (see “COBOL2000 Reference Manual” [1]).
Functions to insert, delete, copy, transfer and edit single source lines and ranges of lines or columns.
Statements to insert, delete and replace character strings in the file.