SQL Supplement for H-Series RVUs

SQL/MP Programming Manual for COBOL
HP NonStop SQL Supplement for H-Series RVUs529446-005
1-20
Running the HP COBOL Compilers
Before compiling an embedded SQL/MP program, verify that the source code is ready
for compilation and configure the compilation environment. For more information, see
Preparing for Compilation on page 1-12.
To use an HP COBOL compiler to compile an embedded SQL/MP program, see:
Running HP COBOL Compilers in the Guardian Environment on page 1-20
Running HP COBOL Compilers in the OSS Environment on page 1-24
Running the Native COBOL Cross Compilers in a PC Host Environment on
page 1-32
Running HP COBOL Compilers in the Guardian Environment
To run an HP COBOL compiler in the Guardian environment, see:
Running the COBOL85 Compiler in the Guardian Environment on page 1-20
Running the NMCOBOL Compiler in the Guardian Environment on page 1-22
Running the ECOBOL Compiler in the Guardian Environment on page 1-23
Running the COBOL85 Compiler in the Guardian Environment
To run the COBOL85 compiler in the Guardian environment, enter the COBOL85
command at the TACL prompt or from a TACL OBEY command file using this syntax:
For more information about the syntax, see the COBOL Manual for TNS and TNS/R
Programs.
For example, this command invokes the COBOL85 compiler and specifies a source
file, MYSRC, which contains embedded SQL statements and directives:
COBOL85 /IN MYSRC/
The source file can be a disk file, terminal, magnetic tape unit, or process.
By default, the compiler generates an object file, RUNUNIT, qualified by the default
system, volume, and subvolume names. To name the object file, specify a target file on
the command line. For example, this command generates an object file, MYPROG:
COBOL85 /IN MYSRC/ MYPROG
COBOL85 /IN source-file [, OUT [list-file]][, run-option].../
[target-file ]
[ (obj-1 [, obj-n]... ) ]
[, copy-library ]
[; compiler-directive ] ...
Note. To terminate a compilation in the Guardian environment, use the Break key to return to
the Command Interpreter and stop the process by using its process identification number or by
typing STOP.