COBOL
is a high-level language. Hence, a COBOL program can
be executed on a computer for which a COBOL compiler
is available. The compiler translates a COBOL source
program into the machine language object program.
This object program is really executed. COBOL programs
are written in coding sheets.
There
are 80 columns in a line of the coding sheet. The
page number is coded in columns 1-3 and the line numbers
are coded in columns 4-6. The page and line numbers
together is called the sequence number. Depending
on the type, the entries are coded both from column
8 or column 12 and in both cases it can be continued
up to column 72. Columns 73-80 can be used to write
some identification. The compiler ignores anything
that is given in columns 73-80 except when a printed
copy of the program is provided by the compiler in
which case the entries in columns 73-80 are also listed.
The use of the sequence number is also optional and
can be omitted. However, when sequence numbers are
provided they must appear in ascending order.
|