|
Your dynamic SQL Statement is not prepared because the Table does notexist?
... you have to trap SQLSTATE 70003
If you want to check whether a table exists in a specific library /schema,
why not accessing the SYSTABLES catalog view?
You don't even need a dynamic SQL Statement.
Something like this
Select 1 into isFound
Where Table_Name = 'YOURTABLE' and Table_Schema = 'YOURLIB';
BTW are you sure you don't want to set the Error message within theCompound
Statement of the Handler?
This mailing list archive is Copyright 1997-2026 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.