SRCFORMAT to indicate whether your
COBOL source conforms to 72-column fixed source format or to 252-column
extended source format.
that each source line of the primary compilation input and of any
COPY text ends at column 72. If a source
line is shorter than 72 bytes, space characters are logically added
to the source line up to the maximum of 72 bytes. If a source line
is longer than 72 bytes, only the first 72 bytes are used as program
source. (Bytes 73 through 80, if provided, are assumed to contain
serial numbers; they are printed in the compiler listing but otherwise
SRCFORMAT(EXTEND) indicates that
each source line of the primary compilation input and of any included
ends at column 252. If a source line is shorter than 252 bytes, space
characters are logically added to the source line up to the maximum
of 252 bytes. If a source line is longer than 252 bytes, only the
first 252 bytes are used as program source; the rest are ignored.
(In extended source format, there is no provision for serial numbers.)
In either format, columns 1 through 6 are interpreted as sequence numbers.
specification: You cannot specify the
You can specify it only in one of the following ways:
- As an option in the
- In the COBOPT environment variable
- In the compopts attribute of the configuration (.cfg) file
A source conversion utility,
scu, is available to help convert non-IBM® or free-format COBOL source so that it can be compiled by COBOL for Linux®.
To see a summary of the
scu functions, type the command
-h. For further details, see the
scu, or see the appropriate related reference.