An EXEC TOOLS GET CONTEXT statement obtains context information (a pointer name) previously saved using EXEC TOOLS SET CONTEXT and reads it into a foreign function.
EXEC TOOLS GET CONTEXT context_name [, ...]
INTO :host_variable_1[, :host_variable_2, ...];
where:
context_name |
Specifies the name of the context you are saving. |
host_variable_n |
Specifies the name of the host language variable into which you are reading the context value. |
The context_name can be a reference to one of the following items:
/*
** Example: Get previously saved context information
*/
EXEC SQL BEGIN DECLARE SECTION;
char *pctx;
EXEC SQL END DECLARE SECTION;
EXEC TOOLS GET CONTEXT appl_1 INTO :pctx;