The srv_descfmt routine gives an Open Server application the information it needs to send back data to the client in the format the client expects. Conceptually, it conveys information about how the client viewed (CS_GET) or will view the data (CS_SET).The srv_descfmt routine retrieves or sets a variety of parameter and row column characteristics.
These characteristics include, among other information:
The parameter or column name
The parameter or column name length
The parameter or column number, where the first parameter or column in a stream is numbered 1
The parameter or column datatype
Whether the parameter or column can be set to null
Whether a parameter is a return parameter
The clfmtp argument to srv_descfmt points to a CS_DATAFMT structure containing this information. For details, see “CS_DATAFMT structure”.