× 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.



Jonathan -

If you use

RUNSQLSTM SRCFILE(YOURLIB/YOURFILE) SRCMBR(YOURMBR) COMMIT(*NONE) ERRLVL(20)

I believe that it will continue running the script despite errors which were encountered. You can then review the resulting spooled file to see which errors occurred. Depending on the errors, you may need to use 30 or 40 as the ERRLVL.

- sjl


Jonathan wrote:

James

The error messages would be useful, although my guess is it's failing on the first ALTER TABLE / DROP statement as the tables don't already exist.

I'm sure I've seen ways of testing for the existence of a table before doing any form of drop, but can't find the links so you might be advised to comment out those statements with '--' the first time you run the script.

If anybody knows a way of checking the tables existence first please share.

All the best

Jonathan




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.