ODBC Server Reference Manual

Stored Procedures
HP NonStop ODBC Server Reference Manual429151-002
5-38
SPELIB Interface
SP_SRV_ENCODE_END_STATEMENT
This function enables the server to encode an “end-statement” message. It signals that
a stored procedure operation has finished, but that the stored procedure execution is
still in progress. This function should be called after each SQL statement has been
executed in the stored procedure.
env
input
is a pointer to the environment object STRUCT.
sqlca
input
is a pointer to a SQL communications area. The caller sets up the SQLCA as if it
were the output from a DYNAMIC FETCH statement.
SP_SRV_ENCODE_END_PROC
This function enables the server to encode an “end-proc” message. It signals that the
stored procedure execution is finished. This function must be the last function called
and should be followed by a call to REPLY to return the final buffer to the NonStop
ODBC Server.
env
input
is a pointer to the environment object STRUCT.
SP_SRV_ENCODE_PRINTMSG
This function enables the server to encode a “print” message. The NonStop ODBC
server sends this message to the client.
short int SP_SRV_ENCODE_END_STATEMENT
( void * env
, void * sqlca
)
short int SP_SRV_ENCODE_END_PROC ( void * env )
short int SP_SRV_ENCODE_PRINTMSG
( void * env
, char * message
, short int message-len
)