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 > Using EXPORT for tab delimited file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-29-03, 12:02
unforgiven unforgiven is offline
Registered User
 
Join Date: Sep 2003
Posts: 12
Using EXPORT for tab delimited file

I am not a DB2 person so I'm sure this question is quite trivial, but I'm using the following command:

EXPORT TO pathname.txt OF DEL

along with a Select statement that gives me a file like:

1,2,3,4
a,b,c,d
3,2,d,3

It puts commas between the fields. I need tabs or blanks like:

1 2 3 4
a b c d
3 2 d 3

Is there an argument or something that I need to supply to get tab delimited vs comma delimited?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 09-29-03, 12:49
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Re: Using EXPORT for tab delimited file

Quote:
Originally posted by unforgiven

EXPORT TO pathname.txt OF DEL

along with a Select statement that gives me a file like:

1,2,3,4
a,b,c,d
3,2,d,3

It puts commas between the fields. I need tabs or blanks like:

1 2 3 4
a b c d
3 2 d 3

Is there an argument or something that I need to supply to get tab delimited vs comma delimited?

EXPORT TO ... OF DEL MODIFIED BY COLDEL0x09 SELECT ...

"COLDEL0x09" specifies column (field) delimiter as the character having hex code of 0x09, which is a tab symbol.

Nick
Reply With Quote
  #3 (permalink)  
Old 09-29-03, 12:55
unforgiven unforgiven is offline
Registered User
 
Join Date: Sep 2003
Posts: 12
Thumbs up

THANK YOU! That worked perfect!
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