Previous Topic: Specifying Preprocessor OptionsNext Topic: Mixed Mode Programming


Preparing Programs

If you are embedding SQL statements in an application program, you must distinguish SQL statements from source code and place the SQL statements in the appropriate division or section of the source program.

Your application can contain an INCLUDE directive to include a member from an include library, if you have coded the Preprocessor option to allow CA Datacom/DB extensions to SQL.

In an application with embedded SQL, you can indicate the action to take when an exception condition is encountered by including WHENEVER statements.

After you have coded your program, you must submit it to the CA Datacom/DB SQL Preprocessor. You must compile and link edit your program along with an SQL User Requirements Table and the host variable processor, DBXHVPR.