The BASIS statement is an extended source text library statement. It provides a complete COBOL program as the source for a compilation.
A complete program can be stored as an entry in a user-defined library and can be used as the source for a compilation. Compiler input is a BASIS statement, optionally followed by any number of INSERT and DELETE statements.
| Format |
|---|
|
For rules of formation and processing rules, see the description under literal-1 and text-name of the COPY statement.
The source file remains unchanged after execution of the BASIS statement.
Usage note: If INSERT or DELETE statements are used to modify the COBOL source text provided by a BASIS statement, the sequence field of the COBOL source text must contain numeric sequence numbers in ascending order.