SQL Supplement for H-Series RVUs

SQL/MP Programming Manual for COBOL
HP NonStop SQL Supplement for H-Series RVUs529446-005
1-15
Preparing for Compilation
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. This option
applies to the COBOL85 compiler only and does not apply to the NMCOBOL or
ECOBOL compiler.
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.
If you do not specify RELEASE1 or RELEASE2:
The COBOL85 compiler selects SQL/MP version 2.
The NMCOBOL compiler selects SQL/MP version 300 or later.
The ECOBOL compiler selects SQL/MP version 350 or later.
Copying Source Code Into a Compilation Unit
To copy the COBOL source code from a separate file into a compilation unit, use one
of these options:
COBOL SOURCE directive
COBOL COPY statement
You cannot use SQL statements in a file you are copying with the COPY statement.
For information about the COPY statement or SOURCE directive, see the COBOL
Manual for TNS and TNS/R Programs and the COBOL Manual for TNS/E Programs.
Note. Although the compiler allows the RELEASE1 and RELEASE2 options, these
options might not be supported in a future RVU. 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” in Section 9 of the SQL/MP Programming Manual for
COBOL.