SQL/MX Programming Manual for C and COBOL (H06.04+)

COBOL Program Compilation
HP NonStop SQL/MX Programming Manual for C and COBOL540434-001
16-21
Running the COBOL Compiler and Linker
This example creates a single-file, annotated output source file that contains an
embedded module definition:
mxsqlco sqlprog.ecob -c sqlprog.cbl \
-g moduleGroup=INVENTORY -g moduleVersion=V2
Running the COBOL Compiler and Linker
The HP NonStop COBOL compilers translate source code into machine language that
is specific to a particular NonStop system architecture. The type of COBOL compiler
that you use to compile your SQL/MX program determines the NonStop system and
environment where you can run the program.
Table 16-1 lists the COBOL compilers, the environments where you can run the
compilers, and the environments where you can run the compiled programs.
Note. TNS/R native compilation tools are available on systems running H06.05 or later RVUs.
Table 16-1. HP NonStop COBOL Compilers for Embedded SQL/MX Programs
Compiler
Compiler Operating
Environment
Program Execution
Environment
TNS/E native compilers:
Native COBOL cross
compiler for TNS/E
*
Windows environment on a
PC connected to a NonStop
system running an H-series
RVU
OSS or Guardian
environment on a NonStop
system running an H-series
RVU
ecobol OSS environment on a
NonStop system running an
H-series RVU
OSS or Guardian
environment on a NonStop
system running an H-series
RVU
ECOBOL Guardian environment on a
NonStop system running an
H-series RVU
Guardian or OSS
environment on a NonStop
system running an H-series
RVU
*
The native COBOL cross compilers can be run from the ETK or from the PC command line.