SQL/MP Programming Manual for C
Error and Status Reporting
HP NonStop SQL/MP Programming Manual for C—429847-008
9-18
Using the SQLSA Structure
input_num
Number of input parameters in the prepared 
statement.
input_names_len
Length of the buffer required to contain names of 
input parameters.
output_num
Number of output variables (host variables or 
SELECT columns) in the prepared statement. 
output_names_len
Length of buffer required to contain names of output 
variables.
name_map_len
Reserved. 
sql_statement_type
Statement being prepared (name, value, and type):
_SQL_STATEMENT_SELECT 1 Cursor SELECT
_SQL_STATEMENT_INSERT 2 INSERT
_SQL_STATEMENT_UPDATE 3 UPDATE
_SQL_STATEMENT_DELETE 4 DELETE
_SQL_STATEMENT_DDL 5 DDL statement
_SQL_STATEMENT_CONTROL 6 Run-time 
CONTROL 
TABLE
_SQL_STATEMENT_DCL 7 LOCK, 
UNLOCK, FREE 
RESOURCES 
_SQL_STATEMENT_GET  8 GET 
VERSION...
To use these declarations, copy the sqlh header file 
using an #include directive.
output_collations_len
Length of the output collation buffer. 
Table 9-5. SQLSA Structure Fields (page 2 of 2)
Field Name Description










