Informix Error Messages and Error Codes From Error 4156 to 4160
Informix Error Code -4156 Warning: The loop counter may overflow.
This warning can occur for a FOR statement when the upper limit of the FOR loop is within the STEP value of the maximum value of that type. As an example, suppose the FOR statement tried to run IX from 1 to 32760 with a step of 20, and IX was declared as SMALLINT; the compiler would issue the warning because IX would overflow without satisfying the loop termination condition.
Informix Error Code -4157 The statement is too complex. Try to simplify it.
This error occurs if a stack overflow is detected during compilation. Under Windows, the stack size is limited. Try to reduce the complexity of your code. Complex expressions, such as many string concatenations (‘||’), can consume a large portion of the stack.
Informix Error Code -4158 INFORMIX-4GL FORM and WINDOW statements are not supported in this product. Use the Visual Class Library for screen interaction.
The compiler encountered an OPEN FORM or OPEN WINDOW statement. In NewEra, these functionalities are handled through Visual Class Library objects. Consult the Graphical and Connectivity Reference Manual. Other grammatical errors might be generated in addition to this one. Replacing the offending statements with VCL calls and recompiling should eliminate the additional messages.
Informix Error Code -4159 Subscripting cannot be applied to the expression because it is not a character or array reference.
The expression cannot be qualified by a subscript because the expression is neither an ARRAY nor CHAR() type.
Informix Error Code -4160 This expression cannot be used as the target of an assignment statement.
An illegal assignment was detected. For example, you declared abc to be a constant, but here you attempted to assign a value to it. Some statements that involve assignment: LET, SELECT…INTO, OPEN CURSOR…INTO, FETCH INTO, FOREACH…INTO, FOR iterator (the iterator is assigned values), INITIALIZE, and LOCATE. Only NewEra returns this error.
Above are list of Informix Error Messages and Errors Codes or Status Codes or Exit Codes along with Error and Warning messages received while performing certain operation against Informix applications or related products.
What are Informix Error Messages?
All Informix messages returned by the Informix server are assigned an error code.
In general, each Informix error contains the following information:
• The Informix Error Code or Informix Error status
• The message text. This text is usually returned with the Error code. Some messages employ word substitution, where the word substituted represents the system-replacement of a term more specific to the occurrence.
• An explanation of how the error may have occurred.
Hope this was helpful.
Information about Informix Error Codes or Status Codes or Exit Codes and Error Messages on Windows, Linux Operating Systems.