SQL/MX Programming Manual for C and COBOL (H06.10+, J06.03+)
COBOL Program Compilation
HP NonStop SQL/MX Programming Manual for C and COBOL—544617-003
16-44
Building SQL/MX COBOL Applications to Run in the
Guardian Environment
RECOMPILATION_WARNINGS=ON,SIMILARITY_CHECK=ON" \
sqlutil.o sqlapp.ecbl -o sqlapp.exe
nmcobol -Wsqlmx -WmoduleSchema=cobcat.cobsch -Wmxcmp \
-Wmxcmp_querydefault="AUTOMATIC_RECOMPILATION=ON,\
RECOMPILATION_WARNINGS=ON,SIMILARITY_CHECK=ON" \
sqlutil.o sqlapp.ecbl -o sqlapp.exe
The ecobol or nmcobol command:
•
Preprocesses the COBOL source file, sqlapp.ecbl, into an annotated
source file, sqlapp.cbl, that contains embedded module definitions
•
Compiles the annotated source file into an object file, sqlapp.o
•
Links the object file, sqlapp.o, and the SQL COBOL utility routines in
sqlutil.o into an executable file, sqlapp.exe
•
Generates a module named cobcat.cobsch.sqlappmod in the
USERMODULES directory
Assuming that the compiled module of sqlutil.o is still current, the sqlapp.exe
executable file is now runnable.
Building SQL/MX COBOL Applications to Run
in the Guardian Environment
To build SQL/MX COBOL applications that run in the Guardian environment, choose
one of these approaches, depending on your preferred development environment:
•
Building SQL/MX Guardian Applications in the Guardian Environment on
page 16-44
•
Building SQL/MX Guardian Applications in the OSS Environment on page 16-47
Building SQL/MX Guardian Applications in the Guardian
Environment
•
Using the OSS Pass-Through Command on page 16-44
•
OSS-to-Guardian File Naming on page 16-45
•
Steps for Building an SQL/MX Application in the Guardian Environment on
page 16-45
•
Using a TACL Macro to Build an SQL/MX Guardian Application on page 16-46
Using the OSS Pass-Through Command
Most commands for building an SQL/MX Guardian application can issued directly at a
TACL prompt. However, the SQL/MX preprocessor, mxsqlco, and the SQL/MX
compiler, mxcmp, are OSS commands, which run only from OSS. Although mxcmp










