INSTALL CLIB (Install external C library file)
Function
In order to execute an external C stored routine on the machine that the UAP is executed on, INSTALL CLIB installs a new external C library file on the HiRDB server on which the external C stored routine is implemented.
Format
INSTALL CLIB {:embedded-variable|'character-string'} |
Operands
Specifies the name of the external C library file to be installed. Specify an absolute path name or a relative path name for the name of the external C library file.
Common rules
Example
Specify and install an external C library file (c:\work\sampleproc.dll) using an embedded variable.
EXEC SQL BEGIN DECLARE SECTION ;
struct {
short len ;
char str[256] ;
} filename ;
EXEC SQL END DECLARE SECTION ;
EXEC SQL CONNECT ;
strcpy(filename.str,"c:\\work\\sampleproc.dll") ;
filename.len = strlen(filename.str) ;
EXEC SQL INSTALL CLIB :filename ;