SQL/MP Programming Manual for COBOL

SQL/MP System Procedures
HP NonStop SQL/MP Programming Manual for COBOL529758-003
5-20
SQLCAGETINFOLIST
call-error output
PIC S9(4) COMP
is a variable you declare for the GIVING parameter to store the SQL error code
that indicates the results of the call. SQLCAGETINFOLIST procedure error codes
are:
The item codes you can specify in the item-list array are:
Error Code Description
8510 A required parameter is missing.
8511 The program specified an invalid item code.
8512 The program specified an invalid SQLCA structure.
8513 The program specified an SQLCA structure with a version more recent
than the version of the SQLCAGETINFOLIST procedure.
8514 Insufficient buffer space is available.
8515 The program specified an error entry index less than zero or greater
than the number of errors.
8516 The program specified a namesmax parameter less than or equal to
zero.
8517 The program specified a paramsmax parameter less than or equal to
zero.
Item Code Size (Bytes) Description
1 2 SQLCA version.
2 2 Maximum number of errors or warnings the SQLCA
can represent.
3 2 Actual number of errors or warnings.
4 2 Whether there were more errors or warnings than the
SQLCA had space to store:
0 = There were no more errors or warnings
nonzero = There were more errors or warnings
5 2 Whether there were more parameters than the
SQLCA had space to store:
0 = There were no more parameters
nonzero = There were more parameters
6 2 Maximum length, in bytes, of the name of the
paragraph in which the SQL statement appears.
7 2 Actual length, in bytes, of the name of the paragraph
in which the SQL statement appears.
8 (in item code 7) Program ID of the program in which the SQL
statement appears.
9 4 Source code line number of the SQL statement that
caused an error.