SQL/MP Programming Manual for COBOL85
Explicit Program Compilation
HP NonStop SQL/MP Programming Manual for COBOL85—429326-004
6-43
Using Compatible Components
•
A dynamic CONTROL directive affects only dynamic SQL statements prepared
after the CONTROL directive in execution order, except as described in this note.
Using Compatible Components
Before you compile an SQL program file, you might need to determine the versions of
the COBOL85 compiler, SQL compiler (SQLCOMP), and all SQL program files to
ensure that all components and files are compatible.
COBOL85 Compiler
The host SQL version (HSV) identifies the version of the COBOL85 compiler.
A COBOL program that uses version 300 (or later) SQL features must be compiled
with a version of 300 (or later) COBOL85 compiler. To determine the version of the
COBOL85 compiler, use one of these methods:
•
Run the VPROC program for the COBOL object file. VPROC displays a line for
each object bound into the target object file. Check the version in the VPROC line
that contains S7094, which is the SQL compiler interface (SCI) product number.
•
When you run the COBOL85 compiler, specify the SQLMAP option in the SQL
compiler directive. The SQLMAP option directs the COBOL85 compiler to include
the HOSV in the map at the end of the source-file listing. For example, a
version 335 COBOL85 compiler listing includes this line:
Host Object SQL Version = 310
SQL Compiler
The SQL compiler (SQLCOMP) must have the same version as (or later than) the
HOSV of the SQL program file. To determine the version of the SQL compiler, use the
GET VERSION OF SYSTEM statement. All SQL/MP components, including the SQL
compiler, must have the same version.
Note. A dynamic CONTROL TABLE directive with the TIMEOUT option affects all static and
dynamic SQL statements that follow in execution order (as opposed to listing order) until
another dynamic CONTROL TABLE directive resets the TIMEOUT option or until the program
encounters the end of the run-time data unit (RTDU) that contains the CONTROL TABLE
directive.










