ODBC Server Reference Manual

Stored Procedures
HP NonStop ODBC Server Reference Manual429151-002
5-49
Shell Routines Interface
reply_err: IN/OUT: pointer to the reply error
Returns: if successful -- SPELIB_OK
else -- an SPELIB error
___________________________________________________________________*/
short int encode_printmsg( void *env
, unsigned long int max_len
, short int msg_len
, char *msg_text
, char *buffer
, short int *reply_err
);
encode_raiserror
extern
/*_____________________________________________________________________
This function encodes a raiserror message into the output buffer. If
it detects an SPELIB_BUFFER_OVERFLOW condition, it will invoke the
CALL-BACK facility.
env: IN: pointer to SPELIB environment object
max_len: IN: the maximum output buffer size in bytes
err_num: IN: error number associated with the raiserror text
msg_len: IN: the raiserror text length in bytes
msg_text: IN: pointer to the raiserror text buffer
buffer: IN/OUT: pointer to the output buffer
reply_err: IN/OUT: pointer to the reply error
Returns: if successful -- SPELIB_OK
else -- an SPELIB error
___________________________________________________________________*/
short int encode_raiserror( void *env
, unsigned long int max_len
, short int err_num
, short int msg_len
, char *msg_text
, char *buffer
, short int *reply_err
);
encode_return_status. extern
/*_____________________________________________________________________
This function encodes a return status message into the output buffer.
If it detects an SPELIB_BUFFER_OVERFLOW condition, it will invoke the
CALL-BACK facility.
env: IN: pointer to SPELIB environment object
max_len: IN: the maximum output buffer size in bytes
status: IN: the return status value
buffer: IN/OUT: pointer to the output buffer
reply_err: IN/OUT: pointer to the reply error
Returns: if successful -- SPELIB_OK
else -- an SPELIB error
___________________________________________________________________*/
short int encode_return_status( void *env
, unsigned long int max_len
, short int status
, char *buffer