HP NonStop SQL/MP Programming Manual page 98

For c
Table of Contents

Advertisement

SQL/MP System Procedures
#include <cextdecs(SQLCADISPLAY)>
void SQLCADISPLAY (
);
sqlca
is a pointer to the SQLCA structure. The C compiler automatically declares the
SQLCA structure when you specify the INCLUDE SQLCA directive.
output_file_number
is the output file number. If you omit this value or set it to a negative value,
SQLCADISPLAY displays information at your home terminal. In this case,
SQLCADISPLAY opens your home terminal, displays the message, and then
closes your terminal. This parameter is ignored if detail_params specifies
sequential I/O (SIO).
output_record_length
is the length in bytes of records to be written to the output file. The length must be
an integer value from 60 through 600. The default length is 79 bytes.
sql_msg_file_number
is the file number of the SQL message file (SQLMSG is the default file). If you
specify -1 as the input value, the system opens the message file and returns the
resulting file number. If you specify a value other than -1, the system uses that
value as the file number of the message file.
To improve the performance of multiple calls to the SQLCADISPLAY (or the
SQLCATOBUFFER procedure), specify -1 on the first call and then use the
returned file number for subsequent calls. By using the file number, the system
opens the file only once and uses the file number for subsequent calls. Otherwise,
the system opens the file for each call.
HP NonStop SQL/MP Programming Manual for C—429847-008
short *sqlca,
[ short output_file_number,
[ short output_record_length, ]
[ short *sql_msg_file_number, ]
[ short errors,
[ short warnings,
[ short statistics,
[ short caller_error_loc,
[ short internal_error_loc,
[ char *prefix,
[ short prefix_length,
[ char *suffix,
[ short suffix_length,
[ short *detail_params
5-4
SQLCADISPLAY
/* i
*/
]
/* i
*/
/* i
*/
/* i:o */
]
/* i
*/
]
/* i
*/
]
/* i
*/
]
/* i
*/
]
/* i
*/
]
/* i
*/
]
/* i
*/
]
/* i
*/
]
/* i
*/
]
/* i
*/

Advertisement

Table of Contents
loading

Table of Contents