You can
use the SASFORMAT structure in order to specify to use an informat
with a column. You can also choose to override default informatting
information. The instructions for using and overriding informats are
similar to the instructions for using and overriding formats. Here
is the procedure:
-
Set the wType member of the SASFORMAT structure to
SASFMT_INFORMAT, so that the instance of the structure applies to
an informat rather than a format.
-
Set pwszName to an informat name to override the default,
or set it to zero (0) or NULL to use the default.
-
Set iLength to a width to override the default, or
set it to zero (0) or NULL to use the default.
-
Set iDecimals to a decimal value to override the default,
or set it to zero (0) or NULL to use the default.
-
Set the wType member of your DBBINDING structure to
one of these OLE DB character types: DBTYPE_STR, DBTYPE_WSTR, or DBTYPE_BSTR.
(This action is the same as the format setting.)