If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > CLP If Statements

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-14-10, 10:41
KrimblKrum KrimblKrum is offline
Registered User
 
Join Date: Dec 2010
Posts: 2
Question CLP If Statements

I'm maintaining DDL files for deploying database changes, using the DB2 CLP. In some cases, the files are run at sites that have older versions of the database structures. At other sites, the database structures don't exist.

I've included Drop statements in the DDL files, which are run unconditionally. This results in errors at sites that don't have the structures. Does the DB2 CLP support conditional statemets (i.e. "IF" statements)? If so, could someone point me to some documentation or provide an example?

For what it's worth, I'm using DB2 UDB v8
Reply With Quote
  #2 (permalink)  
Old 12-14-10, 10:47
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by KrimblKrum View Post
IDoes the DB2 CLP support conditional statemets (i.e. "IF" statements)?
No.

..........................
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On