SQLCODE field of the SQL communications area
If no rows satisfy the search criteria of a DELETE, an INSERT INTO tablename SELECT, a SELECT...INTO TEMP, or an UPDATE statement, the database server sets SQLCODE to 100 if the database is ANSI-compliant and 0 if the database is not ANSI-compliant.
For more information, see the descriptions of SQLCODE in the HCL OneDB™ Guide to SQL: Tutorial.