COBOL Manual for TNS and TNS/R Programs

Creating and Compiling HP COBOL Source
Programs
HP COBOL Manual for TNS and TNS/R Programs522555-006
22-6
Reference Format
Reference Format
Individual source program lines must follow a reference format that the compiler
accepts. There are two choices of reference format: Tandem and ANSI. Tandem
format, an HP extension to COBOL, is less restrictive than ANSI. The principal
differences between the Tandem and ANSI formats are in:
Margin locations
Permitted line lengths
Absence of sequence number and identification field in Tandem format
Continuation lines
You can write a COBOL source program entirely in either format or in a mixture of
both. The default is Tandem format. Unless you direct the compiler to accept ANSI
format, the compiler assumes the entire program is in Tandem format.
Figure 22-1. Tandem Reference Format
Figure 22-2. ANSI Reference Format
Column:
Margin:
Area BArea A
Line
*n <= 132
21345678910...n*
Indicator Area
CA B R
VST500.vsd
Column:
Margin:
Area BArea A
87 9 10 11 12 72 73 ... 80
Line
Indicator Field
CA B R
...
Identification Field
123456
L
Sequence
Number
Area
VST524.vsd