BASIS statement

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

Read syntax diagramSkip visual syntax diagramsequence-numberBASISbasis-nameliteral-1
sequence-number
Can optionally appear in columns 1 through 6, followed by a space. The content of this field is ignored.
BASIS
Can appear anywhere in columns 1 through 72, followed by basis-name. There must be no other text in the statement.
basis-name, literal-1
Is the name by which the library entry is known to the system environment.

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.