0% found this document useful (0 votes)
301 views1 page

SQLCODE Meanings and Execution Results

The SQLCODE value indicates the result of executing an SQL statement in the database, with 0 meaning success, 100 meaning no data found, values greater than 0 but not equal to 100 representing success with a warning, 0 with a warning flag also representing success with a warning, and negative values representing an unsuccessful execution.

Uploaded by

VISHNU400
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
301 views1 page

SQLCODE Meanings and Execution Results

The SQLCODE value indicates the result of executing an SQL statement in the database, with 0 meaning success, 100 meaning no data found, values greater than 0 but not equal to 100 representing success with a warning, 0 with a warning flag also representing success with a warning, and negative values representing an unsuccessful execution.

Uploaded by

VISHNU400
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

The SQLCODE is also set by the database manager after each SQL statement is exec uted as follows: If SQLCODE

= 0 and SQLWARN0 is blank, 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 and SQLWARN0 = 'W', execution was successful with a warning. If SQLCODE < 0, execution was not successful.

You might also like