SQL/MX 3.2 Programming Manual for C and COBOL (H06.25+, J06.14+)
Contents
HP NonStop SQL/MX Release 3.2 Programming Manual for C and COBOL—663854-002
ix
14. Transaction Management
Occurrences of the Lost Open Error 13-20
Recovering From the Lost Open Error 13-21
14. Transaction Management
Transaction Control Statements 14-1
Steps for Ensuring Data Consistency 14-1
Declaring Required Variables 14-3
Setting Attributes for Transactions 14-3
Starting a Transaction 14-6
Processing Database Changes 14-7
Testing for Errors
14-7
Committing Database Changes if No Errors Occur
14-8
Undoing Database Changes if an Error Occurs 14-8
15. C/C++ Program Compilation
Compiling SQL/MX Applications and Modules 15-2
Compiling Embedded SQL C/C++ Programs With Embedded Module
Definitions 15-2
Compiling Embedded SQL C/C++ Programs With Module Definition Files 15-6
Creating Modules: From Development to Production 15-8
Running the SQL/MX C/C++ Preprocessor 15-8
Preprocessor Functions 15-9
Preprocessor Output 15-17
OSS-Hosted SQL/MX C/C++ Preprocessor 15-19
Windows-Hosted SQL/MX C/C++ Preprocessor
15-26
Running the C/C++ Compiler and Linker
15-33
Running the SQL/MX Compiler
15-34
Compiling Embedded Module Definitions 15-35
MXCMP Environment Variable
15-40
MXCMPUM Environment Variable
15-40
Compiling a Module Definition File
15-40
c89 Utility: Using One Command for All Compilation Steps 15-42
c89 Examples With Embedded Module Definitions 15-48
c89 Examples With Module Definition Files 15-51
Examples of Building and Deploying Embedded SQL C/C++ Programs 15-54
Building a C/C++ Program With Embedded SQL Statements on Windows 15-54
Developing a Native C/C++ Program With Embedded SQL/MX Statements on OSS
15-56
Building and Deploying a C Application With Embedded Module Definitions and
Module Definition Files 15-57










