SQL/MX Programming Manual for C and COBOL (G06.24+, H06.03+)

C/C++ Program Compilation
HP NonStop SQL/MX Programming Manual for C and COBOL523627-004
15-53
Building SQL/MX C/C++ Applications to Run in the
Guardian Environment
development system to the /usr/tandem/sqlmx/USERMODULES directory of the
RDF primary system.
15. On the RDF primary system \APPLE, log on as the application operator, set up
DEFINEs, and run the application:
add_define =debits class=map file=\\APPLE.$plat.charges.buys
add_define =credits class=map \
file=\\APPLE.$plat.charges.pays nonstop.exe
Building SQL/MX C/C++ Applications to Run in
the Guardian Environment
To build SQL/MX C/C++ 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 15-53
Building SQL/MX Guardian Applications in the OSS Environment on page 15-57
Building SQL/MX Guardian Applications in the Guardian
Environment
Using the OSS Pass-Through Command at a TACL Prompt on page 15-53
OSS-to-Guardian File Naming on page 15-54
Steps for Building an SQL/MX C Application in the Guardian Environment on
page 15-54
Using a TACL Macro to Build a C Guardian Application on page 15-55
Steps for Building an SQL/MX C++ Application in the Guardian Environment on
page 15-55
Using a TACL Macro to Build a C++ Guardian Application on page 15-56
Using the OSS Pass-Through Command at a TACL Prompt
Most commands for building an SQL/MX Guardian application can be issued directly at
a TACL prompt. However, the SQL/MX preprocessor, mxsqlc, and the SQL/MX
compiler, mxcmp, run as OSS processes and must be started in the OSS environment.
In the Guardian environment, you can work around this limitation by using an OSS
pass-through command at a TACL prompt.
To run the SQL/MX preprocessor and the SQL/MX compiler in the Guardian
environment, use the OSS pass-through command by specifying the osh -c option at
a TACL prompt. The osh -c option executes one command line at a time in the OSS