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: The INIT directive (without PROT) is deprecated, and provided for backward compatibility only. We strongly recommend that
you use EXEC SQL CONNECT statements in your application instead.
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: