SQL Programming Manual for Pascal

Introduction
HP NonStop SQL Programming Manual for Pascal528614-001
1-6
Compiling and Executing a Program
To compile a Pascal program source file that contains embedded SQL statements,
you:
1. Run the Pascal compiler to compile the Pascal statements in each source file of
your program.
2. Use the Binder program to include the run-time library. If necessary, run the Binder
program to combine multiple object files into one object file.
3. Optionally, if you plan to run the object on a Tandem NonStop Series/RISC
(TNS/R) system, run the Accelerator on the object file generated from Step 1 or 2.
4. Run the SQL compiler to compile the SQL statements in the Pascal object file.
5. Run the object file.
Figure 1-3. Compiling and Executing a Program
VST0103.vsd
5 RUN
SQL Program
Object File
Pascal Object
Run-Time
Library Object
File
Pascal/SQL
Source File
RUN1
Pascal
Compiler
BINDER
Program
RUN
2
3
RUN
Accelerator
4
RUN
SQL Compiler