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 > Exporting a CSV file using Export/Import

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-02-07, 05:46
drogomoss drogomoss is offline
Registered User
 
Join Date: Mar 2007
Posts: 30
Exporting a CSV file using Export/Import

Dear All,

Good day.

My problem at this moment is that we are using Toad for DB2. Toad for DB2 is not capable of exporting db tables to an ixf file. It can only import .csv, .fil, .txt, .xls. Because of this we have to revise our procedures to be able to to export to any of the file formats above.

Is there a way to use EXPORT to export files in the formats above. This way we will be able to import the table using Toad for Db2. I only know the EXPORT command to be able to handle DEL and IXF. Any workarounds here would be very helpful.

Thanks a lot in advance.
Reply With Quote
  #2 (permalink)  
Old 07-02-07, 06:08
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
export.. of del .. : this is a csv file
the only other format is ixf
for txt you could do
db2 -x select * from table > outputfile
this would create a regular txt file
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #3 (permalink)  
Old 07-02-07, 06:21
drogomoss drogomoss is offline
Registered User
 
Join Date: Mar 2007
Posts: 30
WOW!!! You mean that DEL thing is also a CSV? Thanks a lot guyprzytula. Your the best thing that happened to day.
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