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