Generates a CONNECT statement and/or exit handling code to ensure rollback to the last commit point in the case of an abnormal
termination.
Note: INIT, INIT=S and INIT=X are deprecated, and provided for backward compatibility only.
Important: We strongly recommend that you use EXEC SQL CONNECT statements in your application instead of INIT, INIT=S or INIT=X.
Syntax:
INIT[={[PROT|P] | S | X}]
NOINIT
Parameters:
INIT
|
Generates a CONNECT statement in shared mode, and also generates exit handling code
|
INIT=S
|
INIT=X
|
Generates a CONNECT statement in exclusive mode, and also generates exit handling code
|
INIT=PROT
|
Generates exit handling code only.
|
INIT=P
|
NOINIT
|
No code generation whatsoever.
|
Dependency:
- If your INIT call generates a connection, you can use it with the DB2 PASS compiler directive option.
Comments: