COBOL Manual for TNS and TNS/R Programs
Program Compilation
HP COBOL Manual for TNS and TNS/R Programs—522555-006
11-46
Where Compiler Directives Are Allowed
directive
is one of the directives listed in this section.
With these exceptions, compiler directive lines can appear at any point in the source
text, including those portions that a COPY statement retrieves from a source library
file.
•
Compiler directive lines cannot occur between the elements of a multiline COPY
statement. The syntax of the COPY statement, without the REPLACING phrase, is:
If, for example, the word COPY is on one source line and text-name is on a
subsequent source line, no compiler directive lines can occur on any intervening
source line.
•
These directives have restrictions on their location within the source text:
°
COMPILE
°
ENV
°
FLOAT
°
LD
°
MAIN
°
NLD
°
NONSTOP
°
OPTIMIZE
°
SYMBOLS
°
SYNTAX
°
UL
•
The COLUMNS directive can appear in a COPY library, but only once, before the
first SECTION directive.
•
The SQL directive cannot appear in a source program that is to be compiled with
the NMCOBOL compiler.
COPY
library-nameOF
IN
.
text-name
VST265.vsd