SQL Programming Manual for Pascal
Program Compilation and Execution
HP NonStop SQL Programming Manual for Pascal—528614-001
5-4
Using Binder
If you do not specify the SWAP option, the compiler uses the volume on which it
resides (normally $SYSTEM). In practice, this volume is frequently full and it is
sometimes necessary to specify an alternative volume to ensure enough
temporary disk space for the compilation.
run-option
is a TACL RUN command option, as described in the TACL Reference Manual.
object-file
is a NonStop Kernel operating system file name that specifies the bindable object
code for the compilation unit.
If you omit the object file, the compiler creates a file named OBJECT on your
default subvolume. If the compiler cannot create OBJECT (usually, because a file
with this name already exists and cannot be purged), the compiler creates a file
named ZZBI nnnn on your default subvolume (nnnn is a 4-digit number
determined by the system).
directive
is any Pascal compiler directive described in this manual or in the Pascal
Reference Manual except IF, ELSE, ENDIF, PAGE, SOURCE, or SECTION.
The SQL directive is required either in the command line or at the beginning of the
primary source file; the SYMBOLPAGES directive and other directives are optional.
For a description of the SQL directives, see Section 3, NonStop SQL Statements
and Directives.
Example of Running the Pascal Compiler
In the following example, the Pascal compiler compiles the source file PARTSRC,
writes the compiler listing to the spooler location $S.#PARTLST, and writes the object
file to the disk file PARTOBJ on your default subvolume. The SWAP option ensures
that the compiler’s temporary files are on a disk that has plenty of space available
($MYDISK).
PASCAL /IN PARTSRC, OUT $S.#PARTLST, SWAP $MYDISK & NOWAIT /
PARTOBJ; SQL
For more information about Pascal compiler options, see the Pascal Reference
Manual.
Using Binder
The Binder program allows you to read, link, modify, and build executable object files
for SQL and Pascal object files (as well as C, COBOL85, and Pascal object files). The
Tandem Pascal compiler does not directly invoke Binder. You must specifically bind
together all separately compiled modules, and bind all your programs with the run-time
library before you execute them. To bind a Pascal program, you must first invoke