Reference Manual
CHAPTER 11. SQL Preprocessor Error Messages
This section lists the SQL preprocessor errors.
Item |
Value |
---|---|
Code |
2601 |
You have attempted to index a host variable that is an array with a value too large for the array.
Item |
Value |
---|---|
Code |
2602 |
You have used an array of pointers as a host variable. This is not legal.
Item |
Value |
---|---|
Code |
2603 |
You have used an array of arrays of character as a host variable. This is not a legal host variable type.
Item |
Value |
---|---|
Code |
2604 |
You have attempted to declare a VARCHAR or BINARY host variable using the DECL_VARCHAR or DECL_BINARY macro but have not specified a size for the array.
Item |
Value |
---|---|
Code |
2605 |
You have attempted to declare a host variable as an array of VARCHAR or BINARY. This is not a legal host variable type.
Item |
Value |
---|---|
Code |
2606 |
You have attempted to declare a host variable as a pointer to a VARCHAR or BINARY. This is not a legal host variable type.
Item |
Value |
---|---|
Code |
2607 |
You can not specify a C variable initializer for a host variable of type VARCHAR or BINARY. You must initialize this variable in regular C executable code.
Item |
Value |
---|---|
Code |
2608 |
You have used the DECL_FIXCHAR macro to declare a host variable of type FIXCHAR but have not specified a length.
Item |
Value |
---|---|
Code |
2609 |
You have attempted to declare a host variable as an array of FIXCHAR. This is not a legal host variable type.
Item |
Value |
---|---|
Code |
2610 |
You have attempted to declare a host variable as an array of ints. This is not a legal host variable type.
Item |
Value |
---|---|
Code |
2611 |
You must specify the precision when declaring a packed decimal host variable using the DECL_DECIMAL macro. The scale is optional.
Item |
Value |
---|---|
Code |
2612 |
You have attempted to declare a host variable as an array of DECIMAL. This is not a legal host variable type.
Item |
Value |
---|---|
Code |
2613 |
You declared a host variable of a type not understood by the SQL preprocessor.
Item |
Value |
---|---|
Code |
2614 |
An integer was required in an embedded SQL statement (for a fetch offset, or a host variable array index, etc.) and the preprocessor was unable to convert what was supplied into an integer.
Item |
Value |
---|---|
Code |
2615 |
A C string was required in an embedded SQL statement (for a cursor name, option name etc.) and the value supplied was not a C string.
Item |
Value |
---|---|
Code |
2617 |
You defined a host variable twice with different definitions.
Item |
Value |
---|---|
Code |
2618 |
A host variable used as a statement identifier should be of type a_sql_statement_number. You attempted to use a host variable of some other type as a statement identifier.
Item |
Value |
---|---|
Code |
2619 |
The specified include file was not found. Note that the preprocessor will use the INCLUDE environment variable to search for include files.
Item |
Value |
---|---|
Code |
2620 |
You have used a host variable in a statement and that host variable has not been declared in a declare section.
Item |
Value |
---|---|
Code |
2621 |
You have used a indicator variable in a statement and that indicator variable has not been declared in a declare section.
Item |
Value |
---|---|
Code |
2622 |
Indicator variables must be of type short int. You have used a variable of a different type as an indicator variable.
Item |
Value |
---|---|
Code |
2623 |
You have used a host variable that is not a string type in a place where the preprocessor was expecting a host variable of a string type.
Item |
Value |
---|---|
Code |
2625 |
The same host variable name was defined with two different types within the same module. Note that host variable names are global to a C module.
Item |
Value |
---|---|
Code |
2626 |
An embedded SQL statement name has been used (EXECUTEd) without first being PREPAREd.
Item |
Value |
---|---|
Code |
2627 |
An embedded SQL cursor name has been used (in a FETCH, OPEN, CLOSE etc.) without first being DECLAREd.
Item |
Value |
---|---|
Code |
2628 |
You attempted to drop an embedded SQL statement that doesn't exist.
Item |
Value |
---|---|
Code |
2629 |
Host variables are not allowed on the declare statement for the specified cursor. If the cursor name is provided through a host variable, then you should use full dynamic SQL and prepare the statement. A prepared statement may have host variables in it.
Item |
Value |
---|---|
Code |
2630 |
You have specified host variables for a cursor on both the declare and the open statements. In the static case, you should specify the host variables on the declare statement. In the dynamic case, specify them on the open.
Item |
Value |
---|---|
Code |
2631 |
The specified statement requires host variables to be specified either in a host variable list or from an SQLDA.
Item |
Value |
---|---|
Code |
2633 |
You specified an embedded static SELECT statement but you did not specify an INTO clause for the results.
Item |
Value |
---|---|
Code |
2636 |
An embedded SQL specific statement (OPEN, DECLARE, FETCH etc.) has a syntax error.
Item |
Value |
---|---|
Code |
2637 |
You have specified a string constant in an embedded SQL statement, but there is no ending quote before the end of line or end of file.
Item |
Value |
---|---|
Code |
2639 |
The SQL preprocessor has a maximum token length of 2K. Any token longer than 2K will produce this error. For constant strings in embedded SQL commands (the main place this error shows up) use string concatenation to make a longer string.
Item |
Value |
---|---|
Code |
2640 |
You have used a host variable that is not of integer type in a statement where only an integer type host variable is allowed.