Messages 2601 through 2621

Messages on this page are sorted by error number. Locate the appropriate error code in the table below.

Error Code Type Message Possible Cause
2601 Error Subscript value %1 too large You have attempted to index a host variable that is an array with a value too large for the array.
2602 Error Combined pointer and arrays not supported for host types You have used an array of pointers as a host variable. This is not legal.
2603 Error Only one-dimensional arrays supported for CHAR type You have attempted to declare a host variable as an array of character arrays. This is not a legal host variable type
2604 Error VARCHAR type must have a length 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.
2605 Error Arrays of VARCHAR not supported You have attempted to declare a host variable as an array of VARCHAR or BINARY. This is not a legal host variable type.
2606 Error VARCHAR host variables cannot be pointers You have attempted to declare a host variable as a pointer to a VARCHAR or BINARY. This is not a legal host variable type.
2607 Error Initializer not allowed on VARCHAR host variable 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.
2608 Error FIXCHAR type must have a length You have used the DECL_FIXCHAR macro to declare a host variable of type FIXCHAR but have not specified a length.
2609 Error Arrays of FIXCHAR not supported You have attempted to declare a host variable as an array of FIXCHAR arrays. This is not a legal host variable type.
2610 Error Arrays of this type not supported You have attempted to declare a host variable array of a type that is not supported.
2611 Error Precision must be specified for decimal type You must specify the precision when declaring a packed decimal host variable using the DECL_DECIMAL macro. The scale is optional.
2612 Error Arrays of decimal not allowed You have attempted to declare a host variable as an array of DECIMAL. This is not a legal host variable type
2613 Error Unknown host variable type You declared a host variable of a type not understood by the SQL preprocessor.
2614 Error Invalid integer 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.
2615 Error '%1' host variable must be a C string type 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.
2617 Error '%1' symbol already defined You defined a host variable twice.
2618 Error Invalid type for SQL statement variable 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.
2619 Error Cannot find include file '%1' The specified include file was not found. Note that the preprocessor will use the INCLUDE environment variable to search for include files.
2620 Error Host variable '%1' is unknown You have used a host variable in a statement and that host variable has not been declared in a declare section.
2621 Error Indicator variable '%1' is unknown You have used a indicator variable in a statement and that indicator variable has not been declared in a declare section