7. Passing Definitions to the DBMS Server : Server Routines Provided : The ii_error_fcn Routine—Place Error Information in Status Control Block
 
Share this page                  
The ii_error_fcn Routine—Place Error Information in Status Control Block
This routine places error information in the status control block (scb). As a result, you do not need to know the internal scb format. The parameters for this routine are as follows:
scb
A pointer to the scb into which the error must be placed.
err_num
The error number to include in the message that goes to the scb.
text
A pointer to the character string to include in the message that goes to the scb. The message should be in the format "datetime stringE_XXNNNNmessage text".
An alternate method of placing error information in the scb is to use the routine us_error, as defined in the demo UDTs. See $II_SYSTEM/ingres/demo/udadts/common.c. No special format for the error message is required for this routine.