PDCNCTHDL type variable declaration
Function
The PDCNCTHDL-type variable declaration declares the connection handle-type variable to be used in an environment where a multi-connection function is used.
Format 1: C language
PDCNCTHDL connection-handle-variable-name |
Operand
Specifies the connection handle that is to be used.
Common rules
The PDCNCTHDL-type variable declaration is used when an SQL statement is executed in an environment where a multi-connection function is used.
Notes
Example
Declare a PDCNCTHDL-type variable named CnctHdl:
EXEC SQL BEGIN DECLARE SECTION;
PDCNCTHDL CnctHdl;
EXEC SQL END DECLARE SECTION;
Format 2: COBOL language
EXEC SQL BEGIN DECLARE SECTION END-EXEC |
Operands
Specifies the name of the connection handle to be used.
Common rule
Notes
Example
Declare a PDCNCTHDL-type variable named CONNECTHDL.
EXEC SQL BEGIN DECLARE SECTION END-EXEC
01 CONNECTHDL SQL TYPE IS PDCNCTHDL.
EXEC SQL END DECLARE SECTION END-EXEC