Processing Informats for Output Operations

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:
  1. 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.
  2. Set pwszName to an informat name to override the default, or set it to zero (0) or NULL to use the default.
  3. Set iLength to a width to override the default, or set it to zero (0) or NULL to use the default.
  4. Set iDecimals to a decimal value to override the default, or set it to zero (0) or NULL to use the default.
  5. 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.)