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



Sue,

Tried this on a V7.3 system in ACS (drop table if exists ddblib/sensidta;), also STRSQL, and I'm getting an error "Keyword EXISTS not expected."

Doug Belcher | (he|him|his)
IT Applications Specialist | Comfort Control
Emerson Commercial & Residential Solutions | 8100 West Florissant Avenue | St. Louis, Mo | 63136 | USA
Office 314.553.5872 | Mobile 314.766.4461
Doug.Belcher@xxxxxxxxxxx
Please visit our Systems Support page to report an issue or request support.

-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Sue Romano
Sent: Tuesday, December 7, 2021 10:34 PM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Subject: [EXTERNAL] Re: Has anyone monitored for a message within a stored procedure?


Another option is to use the IF EXISTS option with the DROP statement. The statement will complete with success whether the object exists or not.

DROP PROCEDURE IF EXISTS myproc;

This was introduced about a year ago.
https://urldefense.com/v3/__https://www.ibm.com/support/pages/node/6340671__;!!OkyjEqkqqe9UhNQ!i4q7YRtOTWggOufU0NXLy5mxrCqwIl9uQNJDbFA5olxGlTwDr3ENQMIzbp-FkKQFdIo$

My first line is to Drop the Stored procedure before creating it. I
don't
want it to crash because the Stored Procedure does not exist.

Thank You

Tim Feldmeier


Sue Romano
Db2 for IBM i Development
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://urldefense.com/v3/__https://lists.midrange.com/mailman/listinfo/midrange-l__;!!OkyjEqkqqe9UhNQ!i4q7YRtOTWggOufU0NXLy5mxrCqwIl9uQNJDbFA5olxGlTwDr3ENQMIzbp-F0Tut7aE$
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://urldefense.com/v3/__https://archive.midrange.com/midrange-l__;!!OkyjEqkqqe9UhNQ!i4q7YRtOTWggOufU0NXLy5mxrCqwIl9uQNJDbFA5olxGlTwDr3ENQMIzbp-F9N3ZD-k$ .

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://urldefense.com/v3/__https://amazon.midrange.com__;!!OkyjEqkqqe9UhNQ!i4q7YRtOTWggOufU0NXLy5mxrCqwIl9uQNJDbFA5olxGlTwDr3ENQMIzbp-FhF9vOR4$

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.