SQL/MX Programming Manual for C and COBOL (H06.04+)
COBOL Program Compilation
HP NonStop SQL/MX Programming Manual for C and COBOL—540434-001
16-22
Running the SQL/MX Compiler
On Windows, you can run the COBOL compiler and native object file linker from ETK,
or you can use the command-line cross compiler (ecobol or nmcobol) and the linker
(eld or nld). For details on syntax and using the COBOL cross compiler with ETK,
see the help file Using Command-Line Cross Compilers on Windows, which is included
with ETK.
To run the ECOBOL compiler, see the COBOL Manual for TNS/E Programs. To run the
eld linker, see the eld Manual. To run the NMCOBOL compiler, see the COBOL
Manual for TNS and TNS/R Programs. To run the nld linker, see the nld Manual. For
more information on the ecobol or nmcobol utility, see ecobol or nmcobol Utility:
Using One Command for All Compilation Steps on page 16-29, the OSS reference
pages, or the Open System Services Shell and Utilities Reference Manual.
Running the SQL/MX Compiler
The SQL/MX compiler compiles and optimizes static and dynamic SQL statements for
subsequent execution by the SQL/MX executor and performs these functions:
•
Expands SQL object names by using the current default settings
•
Expands view definitions
•
Performs type checking for COBOL and SQL data types
•
Checks SQL object references to verify their existence
TNS/R native compilers:
•
Native COBOL cross
compiler for TNS/R
*
Windows environment on a
PC connected to a NonStop
system running H06.05 or
later RVU or a NonStop
system running a G-series
RVU
OSS or Guardian
environment on a NonStop
system running a G-series
RVU
•
nmcobol OSS environment on a
NonStop system running
H06.05 or later RVU or a
NonStop system running a
G-series RVU
OSS or Guardian
environment on a NonStop
system running a G-series
RVU
•
NMCOBOL Guardian environment on a
NonStop system running
H06.05 or later RVU or a
NonStop system running a
G-series RVU
Guardian or OSS
environment on a NonStop
system running a G-series
RVU
Table 16-1. HP NonStop COBOL Compilers for Embedded SQL/MX Programs
Compiler
Compiler Operating
Environment
Program Execution
Environment
*
The native COBOL cross compilers can be run from the ETK or from the PC command line.










