Pathway/iTS SCREEN COBOL Reference Manual (G06.24+, H06.03+, Pathway/iTS 1.0+)

Compilation
Compaq NonStop™ Pathway/iTS SCREEN COBOL Reference Manual426750-001
7-5
Using Compiler Commands
Using Compiler Commands
Compiler commands provide information to the compiler and select compilation
features. For example, compiler commands select the source format, the file to which
the compiler writes object code, and listing options. Compiler commands also control
selective compilation of portions of the source file.
Specifying Compiler Commands
Compiler commands, with one exception, can be specified in two places: in the
compiler command field in the SCOBOLX run command and in the SCREEN COBOL
source file. (See the SECTION Command on page 7-14 for the exception.) Specify the
commands as follows:
In the compiler-command field in the SCOBOLX run command—Precede each
compiler command with a semicolon (;). Some compiler commands are also option
commands. See the OPTION Command on page 7-13 for an alternate way to
specify these commands.
In the SCREEN COBOL source file—Specify each command alone in a source text
line. A command can appear at any point in the source text, including those
portions retrieved from a source library file with the COPY statement. Compiler
command lines in the source text cannot be interspersed with multiline COPY
statements.
The format of a compiler command in the source text is:
?
appears in the indicator field (column 1 for Tandem standard reference format and
either column 1 or 7 for ANSI standard reference format).
compiler-command
is any of the compiler commands described in this section.
The question mark is a source text format indicator and not part of the compiler
command. The compiler command entered as part of the SCREEN COBOL run
command is not preceded by a question mark.
When Compiler Commands Take Effect
The SCREEN COBOL compiler treats the commands specified in the SCOBOLX run
command as if they were specified at the beginning of the source file. The compiler lists
them at the beginning of the list file. The commands are in effect at the beginning of the
compilation in the order in which they appear in the command. If conflicting commands
are specified, the last command overrides the others.
Compiler commands specified in the source file take effect at the beginning of the next
source text line. When conflicting commands are specified, the last command specified
?compiler-command