The following is the syntax for declaring file reference host variables in C or C++.
Syntax for file reference host variables in C or C++ >>-+----------+--+----------+--SQL TYPE IS--+--------+----------> +-auto-----+ +-const----+ '-XML AS-' +-extern---+ '-volatile-' +-static---+ '-register-' .-,----------------. V | >--+-BLOB_FILE---+----+--------------+-+--;-------------------->< +-CLOB_FILE---+ '-| Variable |-' '-DBCLOB_FILE-' Variable .---------------------. V | |----+-*-+--+----------+-+--variable-name--+--------------+-----| '-&-' +-const----+ '-= init-value-' '-volatile-'
CLOB file reference example (other LOB file reference type declarations are similar):
static volatile SQL TYPE IS BLOB_FILE my_file;
static volatile struct {
sqluint32 name_length;
sqluint32 data_length;
sqluint32 file_options;
char name[255];
} my_file;