Declaration of large object locator type host variables in FORTRAN embedded SQL applications

Large Object (LOB) locator type host variables that you declare in your embedded FORTRAN application are treated as if they were declared in a FORTRAN program. Host variables allow you to exchange data between the embedded application and the database manager.

The syntax for declaring large object (LOB) locator host variables in FORTRAN is:

Read syntax diagramSkip visual syntax diagramSQL TYPE IS BLOB_LOCATORCLOB_LOCATOR ,variable-name
LOB locator host variable considerations:
  1. GRAPHIC types are not supported in FORTRAN.
  2. SQL TYPE IS, BLOB_LOCATOR, CLOB_LOCATOR can be either uppercase, lowercase, or mixed.
  3. Initialization of locators is not permitted.

CLOB locator example (BLOB locator is similar):

Declaring:
   SQL TYPE IS CLOB_LOCATOR my_locator 
Results in the generation of the following declaration:
   integer*4 my_locator