Before you invoke the RDBPRE preprocessor, define the following
symbol:
$ RDBPRE :== $RDBPRE
Invoke the preprocessor and specify a file name and the language.
The following example shows how to preprocess the file COB_
SAMPLE.RCO:
$ RDBPRE
INPUT FILE> COB_SAMPLE.RCO/COB
You can use RDBPRE and host language compile qualifiers when you
precompile a program.
1 /DISTRIBUTED_TRANSACTIONS
Starts distributed transactions for those transactions that
involve more than one attachment to a database. This qualifier
starts the distributed transactions by calling DECdtm system
services implicitly.
2 /[NO]INITIALIZE_HANDLES
Instructs RDBPRE to generate code that automatically initializes
the declared database and request handles generated by RDBPRE.
This qualifier has no effect on whether or when handles are
cleared in the generated code. It only controls initialization
of handles in declarations. The /INITIALIZE_HANDLES qualifier is
the default.
The /NOINITIALIZE_HANDLES qualifier lets the shareable image
and the program that calls it access the database. When you use
the /NOINITIALIZE_HANDLES qualifier, any handle you specify in
your application program must also be specified in the shareable
image.
3 /MESSAGE_MAP
This qualifier is for BASIC programs only. The /MESSAGE_MAP
qualifier causes the precompiler to generate MAP (RDB$module-
name_MAP) declarations instead of DECLARE declarations. If the
application will be linked SHAREABLE, the PSECTS that the MAP
declarations create will have to be made non-shareable before
using this qualifier.