COBOL Manual for TNS and TNS/R Programs
Program Compilation
HP COBOL Manual for TNS and TNS/R Programs—522555-006
11-45
Where Compiler Directives Are Allowed
Where Compiler Directives Are Allowed
In general, one or more directives can be entered in the directive field of the TACL
command to run the compiler (see Starting a Compilation) or can be included in the
source text on lines beginning with a question mark (?) in the indicator area.
Restrictions on these general rules are:
•
Each of the directives ENDUNIT, IF, IFNOT, and ENDIF must be either on a
directive line of its own or be the last of a sequence of directives.
•
The SECTION directive must always be on a line of its own.
•
The NMCOBOL compiler accepts the SQL directive on the compiler command line,
but not in the source program.
•
Some directives are recognized by only one compiler (COBOL85 or NMCOBOL).
For details, see the topics on individual directives.
Directives in the source text override directives on the command line.
The general form of compiler directives is:
?
is a source text format indicator (like the asterisk and the slash) and is not part of
the compiler directive.
The question mark must be in the indicator area (column 1 for Tandem format and
column 1 or 7 for ANSI format).
On the compiler command line:
In the program source text:
directive
directive
;
,
VST263.vsd
?
directive
directive
;
,
VST264.vsd