What does Sqlcode 0 mean?
What does Sqlcode 0 mean?
execution was successful
If SQLCODE = 0, execution was successful. If SQLCODE = 100, “no data” was found. For example, a FETCH statement returned no data because the cursor was positioned after the last row of the result table. If SQLCODE > 0 and not = 100, execution was successful with a warning. If SQLCODE < 0, execution was not successful.
What does Sqlcode mean?
SQLCODE is an integer variable in which the DBMS returns the status of the last SQL statement executed. The values returned in the standalone SQLCODE variable are the same as those returned in the sqlcode member of the SQLCA structure. The value of SQLCODE is meaningful only in the context of a session.
What is Sqlca Sqlcode?
When an SQL statement results in a runtime error, the database server sets SQLCODE (and sqlca. sqlcode) to a negative value. The actual number identifies the particular error. The error message documentation lists the error codes specific to IBM® Informix® and their corrective actions.
What does Sqlcode 1 mean?
For internal exceptions, SQLCODE returns the number of the associated Oracle error. For user-defined exceptions, SQLCODE returns +1 , or a value you assign if the exception is associated with an Oracle error number through pragma EXCEPTION_INIT .
What is Sqlcode in Oracle?
The function SQLCODE returns the number code of the most recent exception. For internal exceptions, SQLCODE returns the number of the associated Oracle error. The number that SQLCODE returns is negative unless the Oracle error is no data found, in which case SQLCODE returns +100 .
What application plan contains?
An application plan contains a list of package names. Db2 applications require an application plan. Packages make application programs more flexible and easier to maintain. In general, you create plans and packages by using the Db2 commands BIND PLAN and BIND PACKAGE.
What is Dclgen in Db2?
DCLGEN generates a table or view declaration and puts it into a member of a partitioned data set that you can include in your program. When you use DCLGEN to generate a table declaration, Db2 gets the relevant information from the Db2 catalog.
What is Sqlcode in mainframe?
SQLCODE is an element of the SQLCA that stores a warning or return code from an SQL process. If you are running in DB2 mode, the value in SQLCODE is a DB2 warning or return code. To determine the appropriate error code, you must translate it into an XDB error message ID using the formula listed in the table below.