Pathway/iTS SCREEN COBOL Reference Manual (G06.24+, H06.03+, Pathway/iTS 1.0+)
Compilation
Compaq NonStop™ Pathway/iTS SCREEN COBOL Reference Manual—426750-001
7-13
OPTION Command
OPTION Command
The OPTION command controls the source text input format, the source listing options,
the title field of the page header, and compilation options.
command-option
is any of the following commands:
ANSI NOSMAP
COMPILE NOSYMBOLS
ERRORS NOWARN
HEADING OPTION
LINES SHOWCOPY
LIST SMAP
MAP SYMBOLS
NOLIST SYNTAX
NOMAP TANDEM
NOSHOWCOPY WARN
A single OPTION command can contain any combination of the available options, in
any order. An option takes effect at the beginning of the next source text line. If a
command contains two or more conflicting options, the last option specified overrides
all the others. For example, the following commands are equivalent:
OPTION LIST, ERRORS 20, LIST, NOLIST
OPTION ERRORS 20, NOLIST
The OPTION command can cause confusion over the uses of commas and semicolons
as separators in the SCOBOLX run command. The same compiler commands can
appear as follows:
•
Listed as a command option in the OPTION command with the comma as the
separator
•
Specified as a compiler command with the semicolon as the separator
For example, the following commands are equivalent:
SCOBOLX / in infile / mprog; OPTION ERROR 20, NOLIST;
SCOBOLX / IN INFILE / mprog; ERROR 20; NOLIST
The keyword OPTION is not required. The following examples show the items ERROR
20 and NOLIST listed in an OPTION command where OPTION is assumed. The
examples show a run command and a source text entry.
SCOBOLX / IN INFILE / ; ERROR 20, NOLIST; CROSSREF
?ERROR 20, NOLIST
?CROSSREF
[ OPTION ] command-option [ , command-option ] ...