A parameter result set contains a single “row” of parameters. Several types of data are returned as a parameter result set, including:
Message parameters – a message result set (CS_MSG_RESULT) has parameters associated with it. Message parameters arrive as a CS_PARAM_RESULT result set immediately following the CS_MSG_RESULT result type.
RPC return parameters – an Adaptive Server stored procedure or an Open Server registered procedure returns output parameter data. This is a CS_PARAM_RESULT result set that contains new values for the procedure’s parameters, as set by the procedure code.
Extended error data and registered procedure notification parameters are also returned as parameter result sets, but since an application does not call ct_results to process these types of data, the application never sees a result type of CS_PARAM_RESULT. Instead, the row of parameters is simply available to be fetched after the application retrieves the CS_COMMAND structure containing the data.
For information about extended error data, see “Extended error data”. For information about registered procedure notification parameters, see “Registered procedures”.