ODBC Server Reference Manual
Stored Procedures
HP NonStop ODBC Server Reference Manual—429151-002
5-35
SPELIB Interface
SP_SRV_ENCODE_INIT
This function must be called before attempting to format each buffer that will be
returned to the NonStop ODBC server. It prepares the base buffer format. The
environment object must have been previously used to decode a stored procedure
request from a NonStop ODBC Server process.
env
input
is a pointer to the environment object STRUCT.
buffer
output
is a pointer to the buffer to be used for encoding a response.
max-buffer-len
input
is the length, in bytes, of the response buffer.
SP_SRV_ENCODE_ROW_DESCR
This function encodes an SQL descriptor area (SQLDA) describing a “result set”
generated by a stored procedure. A result set is a set of rows returned from an SQL
SELECT statement. Each new result set must be started with a call to this function.
env
input
is a pointer to the environment object STRUCT.
sqlda
input
is a pointer to a SQL descriptor area. The caller should set up the SQLDA as if it
were the output from a DYNAMIC DESCRIBE statement for all of the columns to
be returned.
short int SP_SRV_ENCODE_INIT
( void * env
, char * buffer
, unsigned long int max-buffer-len
)
short int SP_SRV_ENCODE_ROW_DESCR
( void * env
, void * sqlda
)