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 > DB2 Variable Substitution

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-10-10, 17:29
KrimblKrum KrimblKrum is offline
Registered User
 
Join Date: Dec 2010
Posts: 2
DB2 Variable Substitution

Does DB2 support variable substitution when processing a DDL file at command prompt? The following is a psuedo-example of what I'm trying to do:

Code:
db2 -vtf update_table.ddl var="myTable"
Where the update_table.ddl contains the following:

Code:
update global.var set flag=1;
Reply With Quote
  #2 (permalink)  
Old 12-10-10, 19:22
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
It has nothing to do with DB2 per se, but rather with the command line processor. DB2 9.7 has a new command line processor, CLPPlus, that offers this capability.
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