SQL/MP Programming Manual for COBOL

Explicit Program Compilation
HP NonStop SQL/MP Programming Manual for COBOL529758-003
6-8
SQL Compiler Directive
Section location table (SLT) index number, which maps a single SQL statement
to a table in the RTDU
Source file name and number
Source file line number
The SQL map is sorted first by RTDU name and then by SLT index number. You
can use this map to correlate MEASURE output with the SQL statements.
The SQLMAP option also directs the compiler to include the HOSV version in the
compiler listing. For example:
Host Object SQL Version = 315
The default is not to include the SQL map in the listing.
WHENEVERLIST
directs the compiler to write active WHENEVER options to the listing file after each
embedded 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.
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
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.
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 on page 9-1.