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
Please visit our Systems Support page to report an issue or request support.
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Sue Romano
Sent: Tuesday, December 7, 2021 10:34 PM
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.
My first line is to Drop the Stored procedure before creating it. I
want it to crash because the Stored Procedure does not exist.
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,
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.