The SQL Manager passes a value to the SQLCODE field of the SQL Communications Area after each SQL statement is processed during preprocessing or during program execution. Most SQLCODE values indicate that the error was detected within the SQL Manager. These have negative values. If no error is indicated, the value is zero. If the message is a warning, the code has a positive value.
Two special cases are indicated when the values -117 or -118 are placed in the SQLCODE field.
Your program should print or display all return code information in the SQLCA. For information about the SQLCA fields, see the CA Datacom/DB SQL User Guide.
An SQLSTATE status indicator is listed in this chapter for each SQLCODE. For more information, see SQL States.
|
Copyright © 2014 CA.
All rights reserved.
|
|