× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 1/8/2015 10:36 AM, Birgitta Hauser wrote:
Never ever check for SQLCODE = *Zeros or SQLSTATE = '00000' but for:

Yes, this was old code :-(

SQLCODE < *Zeros (Error) and SQLCODE = 100 (Not Found)
Or
Subtr(SQLSTATE, 1, 2) <> 00, 01, 02 and Substr(SQLSTATE, 1, 2) = '02' (Not
Found)

SQL may throw some warnings SQLCODE > *Zeros and SQLCODE <> 100 or
Substr(SQLSTATE, 1, 2) = '01'. Eventhoug a warning is sent, the data is
returned correctly.

Well.... truncation may or may not be 'correct'. In my case, it wasn't,
which is what put me in debug mode in the first place.

I have learnt so much from your posts on SQL Birgitta. Thank you!


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.