Use the SASFORMAT structure (defined by SASExtensions.idl) to bind SAS format processing to columns during read, write, and update operations. To perform the binding operation, you call the IAccessor::CreateAccessor method. The following code shows the SASFORMAT structure:
typedef enum { SASFMT_FORMAT, SASFMT_INFORMAT } SASFMTENUM; typedef struct tagSASFORMAT { SASFMTENUM wType; LPOLESTR pwszName; SHORT iLength; SHORT iDecimals; } SASFORMAT;
The following table explains how the elements of the SASFORMAT structure are used:
See the following topics for more information about how to use SASFORMAT in order to make formats and informats available to client applications. They explain how to apply formats using the IAccessor::CreateAccessor method on rowsets returned by IOpenRowset::OpenRowset and ICommand::Execute.