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 > db2cmd versus db2clpex.exe

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-28-06, 14:34
chemaster chemaster is offline
Registered User
 
Join Date: Feb 2006
Posts: 13
db2cmd versus db2clpex.exe

I have written quite a few batch files which use db2cmd and this works fine. However, a few batch files are being scheduled within windows and do not need the CLP popup (they reporting to a file) so I am using db2clpex.exe instead which seems to work fine and the CLP doesn't appear. Here is a sample use:

echo CONNECT to mydb user me using 'mypassword' >> %0.ddl
echo SELECT * employees >> %0.ddl
echo TERMINATE >> %0.ddl

db2cmd /c db2 -f %0.dll (OR the following if scheduled)
db2clpex.exe /c db2 -f %0.dll (CLP window doesn't popup)

However, there is not much documentation on db2clpex so I have the following question.

- Is db2cmd and db2clpex pretty much interchangeable or are there special concerns relating to the use of db2clpex.exe?
- what is the actual difference between these to programs?
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