SQL/MP Programming Manual for COBOL85

Explicit Program Compilation
HP NonStop SQL/MP Programming Manual for COBOL85429326-004
6-11
Running the COBOL85 or NMCOBOL Compiler in
the Guardian Environment
WHENEVERLIST
directs the compiler to write active WHENEVER options to the listing file after each
SQL statement is processed.
The default is not to write the WHENEVER options.
RELEASE1 or RELEASE2
specifies the version of the SQL/MP features in the program (including the SQL
data structures) and the version of SQL/MP software on which the program file can
run as follows:
RELEASE1
specifies version 1 features. A program that uses the RELEASE1 option is
compatible with SQL/MP version 1, 2, or 300 (or later) software.
RELEASE2
specifies version 2 features. A program that uses the RELEASE2 option is
compatible with SQL/MP version 2 or 300 (or later) software, but not with
version 1 software. RELEASE2 is the default.
Running the COBOL85 or NMCOBOL Compiler in the Guardian
Environment
To run the COBOL85 or NMCOBOL compiler in the Guardian environment, enter the
COBOL85 or NMCOBOL command at the TACL prompt or from a TACL OBEY
command file using this syntax:
source-file
is a source file that contains embedded SQL statements and directives;
source-file is a Guardian file name (or a TACL DEFINE name) of a disk file,
terminal, magnetic tape unit, or process. The default is the IN file of the invoking
process (usually your home terminal).
For the NMCOBOL compiler, source-file must be an EDIT file.
Note. Although the compiler allows the RELEASE1 and RELEASE2 options, these
options might not be supported in a future PVU. If you are using a version 300 (or
later) compiler to generate version 1 or version 2 data structures, use the INCLUDE
STRUCTURES directive with the VERSION 1 or VERSION 2 option rather than the
RELEASE1 or RELEASE2 option. For more information, see Using the INCLUDE
STRUCTURES Directive on page 9-1.
{ COBOL85| NMCOBOL } / IN source-file [ , OUT [ list-file ] ]
[ , run-option ]... /
[ target-file ] [ , copy-library ]
[ ; compiler-directive ] ...