SQL Supplement for H-Series RVUs

SQL/MP Programming Manual for COBOL
HP NonStop SQL Supplement for H-Series RVUs529446-005
1-3
Program Compilation and Execution
Program Compilation and Execution
The procedure to compile and execute an HP COBOL program that contains
embedded SQL statements is similar to the steps you follow for an HP COBOL
program that does not contain embedded SQL statements. You must perform only one
extra step for an SQL program: you compile the embedded SQL statements by using
the SQL compiler.
1. Add any required class MAP or class CATALOG DEFINEs.
Use class MAP DEFINEs to specify SQL objects (tables, views, indexes, and
collations). Use class CATALOG DEFINEs to specify SQL catalogs.
2. Run an HP COBOL compiler (COBOL85, NMCOBOL, or ECOBOL compiler),
specifying a COBOL source file containing embedded SQL statements as input.
3. If necessary, run the Binder program (if you used the COBOL85 compiler), the nld
or ld utility (if you used the native mode NMCOBOL compiler), or the eld utility (if
you used the native mode ECOBOL compiler) to combine the COBOL object file
with other object files.
4. Optionally, run the Accelerator or OCA on the COBOL object file to optimize it for
execution on a TNS/R or TNS/E system, respectively.
5. Run the SQL compiler (SQLCOMP) to compile SQL source statements in the
COBOL object file and to produce a valid SQL program file for execution.
Accelerator Manual Describes how to use the Accelerator to optimize
TNS object code to improve the performance of
TNS HP COBOL programs running on TNS/R
systems.
Object Code Accelerator (OCA) Manual Describes how to use the OCA to optimize TNS
object code to improve the performance of TNS
HP COBOL programs running on TNS/E
systems.
Visual Inspect online help Describes how to use Visual Inspect, a graphical
symbolic debugging product that provides
powerful data display, application navigation, and
multi-program support capabilities. Visual Inspect
consists of a Windows client and a NonStop
host-based server.
Inspect Manual Describes the Inspect program, an interactive
source-level or machine-level debugger that
enables you to interrupt and resume program
execution and to display and modify variables.
Debug Manual Describes the Debug program, an interactive
machine-level debugger on a TNS/R system.
Table 1-1. Program Development Manuals (page2of2)