DB2 Server for VSE & VM: Application Programming
After you successfully preprocess your program, you can compile it using
your normal host language compiler. By preprocessing, you have already
done all the translating that the program needs for the database
manager. Just use the new code that you got after you
preprocessed. Compile this code as you would any other progrm, using
the usual compilers.
This book does not cover the specifics of compiling your host-language
code. However, there are several special rules for SQL programs,
depending on the host language, that you must follow:
- If your PL/I application program contains DBCS data, you must specify the
GRAPHIC option for the compiler. If your COBOL application program
contains DBCS data or is reentrant, the output of the DB2 Server for VM
preprocessor must be processed by the COBOL II Release 2 (or later)
program.
- If the QUOTE option is used for the DB2 Server for VM COBOL preprocessor,
it should also be used for the COBOL compiler.
- If the NOSEQuence option is used for the DB2 Server for VM C preprocessor,
the NOSEQ and MARGINS (1,80) options must be used with the C compiler.
- If the compiler provides a mechanism whereby run-time program interrupts
are trapped before control returns to CMS, the database manager may not
identify that an abnormal termination has occurred. As a result, an
implicit COMMIT is executed instead of an implicit ROLLBACK. See the
host language appendixes for a discussion of program interrupts.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]