When set without parameters, the preprocessor automatically generates code to make the connection to the database. When set with the PROT parameter, protects the database when an application terminates abnormally.
Note: We highly recommend that you use EXEC SQL CONNECT statements in your application instead of INIT alone (without PROT).
Syntax:
INIT[={[PROT|P]}]
NOINIT
Parameters:
INIT
|
Generates a CONNECT statement in shared mode, and also generates exit handling code
|
INIT=PROT
|
Generates exit handling code only.
|
INIT=P
|
NOINIT
|
No code generation whatsoever.
|
Dependencies:
If your INIT call generates a connection, you can use it with the DB and PASS SQL compiler directive options.
Comments: