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 COBOL—523627-004
15-15
OSS-Hosted SQL/MX C/C++ Preprocessor
executor. The executor uses the module-name to locate the corresponding module 
file. The creation_timestamp is used to ensure that the version of the executable 
program is synchronized with the version of the module file. This strategy prevents, for 
example, the executable program from being altered and rebuilt without rebuilding the 
module file. For more information, see Understanding and Avoiding Some Common 
Run-Time Errors on page 15-59.
The ISO88591 character set is the default character set for CHAR or VARCHAR data 
types for NonStop SQL/MX. 
Procedures
After writing to the header of the module definition file, the preprocessor writes 
procedures for executing SQL statements. A procedure consists of a name, a formal 
argument list, and an SQL statement as the body of the procedure. 
Each formal argument has a name and an SQL data type. The arguments are the host 
variables that occur in the SQL statement in the body of the procedure. The 
preprocessor writes the arguments in the same order as the first occurrence of the host 
variables, scanning from left to right, in the SQL statement. In some cases, the 
arguments are data structures that contain references to host variables. The host 
variable references are stored in the same order in which they appear in the SQL 
statement.
OSS-Hosted SQL/MX C/C++ Preprocessor
You can compile and run an embedded SQL C/C++ program in the OSS environment 
on a NonStop system. Although you cannot compile and run such a program in the 
Guardian environment, you can use an OSS pass-through command in the Guardian 
environment. For instructions on using the Windows-hosted SQL/MX C/C++ 
preprocessor, see Windows-Hosted SQL/MX C/C++ Preprocessor on page 15-20. For 
instructions on using the OSS pass-through command to execute the preprocessor in 
the Guardian environment, see Building SQL/MX Guardian Applications in the 
Guardian Environment on page 15-53.
The OSS-hosted SQL/MX C/C++ preprocessor (mxsqlc) is installed in the 
/usr/tandem/sqlmx/bin directory in the OSS environment. You can use the c89 
utility to preprocess embedded SQL C/C++ programs, compile C/C++ and run the 
SQL/MX compiler, and then link the C/C++ program. For more information, see c89 
Utility: Using One Command for All Compilation Steps on page 15-34.










