COBOL Manual for TNS and TNS/R Programs

Source Program Organization and Format
HP COBOL Manual for TNS and TNS/R Programs522555-006
2-8
Restrictions
Standard COBOL Practice
Observe these restrictions to conform to standard COBOL practice (HP COBOL does
not enforce them).
Verify that the special constructs DECLARATIVES and END DECLARATIVES
(along with each one’s terminating period separator) are completely contained in a
single program text line with a space character in the indicator area. Start them in
area A and precede them only by space characters.
Start each of these in area A of a program text line that has a space in its indicator
area:
°
The keyword or user-defined word naming a division, section, or paragraph
°
The initial keyword of an END PROGRAM statement
Any characters preceding these words must be space characters.
Start the level-numbers 01 and 77 and all level indicators (FD and SD) in area A of
a program text line with a space character in the indicator area and precede them
only by space characters. Other level-numbers can start in either area A or area B.
When a lexical element that starts in area A of a program text line is followed by a
separator, you can start the next element (if any) on that line at any point after the
separator; otherwise, start all lexical elements other than those mentioned in the
preceding rules in area B. Always start continuations of lexical elements in area B.
Verify that both of the characters that comprise the pseudo-text separator, ==,
appear on the same program text line.