SQL/MX Programming Manual for C and COBOL (H06.10+, J06.03+)
C/C++ Program Compilation
HP NonStop SQL/MX Programming Manual for C and COBOL—544617-003
15-58
Building SQL/MX C/C++ Applications to Run in the
Guardian Environment
9. Display and verify the compiled plans of the user modules for the RDF backup
version:
mxci
select * from table(explain('comms.mods.nonstop1mod', '%'));
select * from table(explain('comms.mods.nonstop2mod', '%'));
10. From the development system \robin, transfer the application executable
nonstop.exe to the RDF backup system \indus (for example, into the
/usr/beta directory).
11. As super ID, transfer the application’s modules (comms.mods.nonstop1mod,
comms.mods.nonstop2mod) from the development system to the
/usr/tandem/sqlmx/USERMODULES directory of the RDF backup system.
12. On the RDF backup system \indus, log on as the application operator, set up
DEFINEs, and get ready to take over and run the application nonstop.exe if the
RDF primary system fails:
add_define =debits class=map file=\\indus.$gold.cards.debits
add_define =credits class=map \
file=\\indus.$gold.cards.credits
-- now ready to take over and run nonstop.exe
13. From the development system \robin, transfer the application executable
nonstop.exe to the RDF primary system \APPLE (for example, into the
/usr/alpha directory).
14. As super ID, transfer the application’s modules
(telco.modules.nonstop1mod, telco.modules.nonstop2mod) from the
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-59
•
Building SQL/MX Guardian Applications in the OSS Environment on page 15-64










