SQL Supplement for H-Series RVUs

SQL/MP Programming Manual for COBOL
HP NonStop SQL Supplement for H-Series RVUs529446-005
1-5
Explicit Program Compilation
Explicit Program Compilation
This subsection describes the explicit compilation of an HP COBOL program
containing embedded SQL statements and directives in the Guardian, OSS, and PC
host environments using TNS, TNS/R, and TNS/E compilation tools.
Topics include:
Compilation Methods on page 1-5
Preparing for Compilation on page 1-12
Running the HP COBOL Compilers on page 1-19
Binding and Linking on page 1-33
Acceleration of TNS HP COBOL Programs on page 1-36
Running the SQL Compiler on page 1-38
Using CONTROL Directives on page 1-54
Using Compatible Components on page 1-57
Compilation Methods
The HP COBOL compilers translate HP COBOL source programs into machine
language that is specific to a particular NonStop system architecture. Therefore, the
type of HP COBOL compiler that you use to compile your program determines the
NonStop system where you can run the program. For more information, see Table 1-3,
COBOL Compilation Mode and Execution Environment, on page 1-19.
You can compile a source program in TNS mode or native mode on a NonStop system.
A TNS-compiled program uses TNS process and memory architecture and consists of
TNS object code (CISC instructions), whereas a native-compiled program uses native
process and memory architecture and consists of native object code (RISC or Itanium
instructions). The steps for compiling an embedded SQL/MP program for each
compilation mode are discussed next:
TNS Mode Compilation on page 1-6
Native Mode Compilation for TNS/R Systems on page 1-8
Native Mode Compilation for TNS/E Systems on page 1-10