In the path description of the following C program segment:
The following example shows how to insert data from a regular file referenced by :hv_text_file into a CLOB column (note that the path names used in the example are for UNIX-based systems):
strcpy(hv_text_file.name, "/u/userid/dirname/filnam.1");
hv_text_file.name_length = strlen("/u/userid/dirname/filnam.1");
hv_text_file.file_options = SQL_FILE_READ; /* this is a 'regular' file */
EXEC SQL INSERT INTO CLOBTAB
VALUES(:hv_text_file);