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 > Select Delimiter for DB2 Export Command

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-24-07, 11:15
JDionne JDionne is offline
Registered User
 
Join Date: Aug 2002
Location: Charlotte NC
Posts: 663
Select Delimiter for DB2 Export Command

This seems like a simple question, so I must be looking at the documentation wrong. I cannot see where I can set what delimiter will be used when I use the export comand into a regular txt file.

Can someone post an example syntax so that I can match it with the DB2 manual?

Regards
__________________
------------
And back to SQL Server....I always find my way home
View my Linkedin profile
Reply With Quote
  #2 (permalink)  
Old 10-24-07, 11:32
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Look at the coldel modifier. E.g.
Code:
export to file.txt of del 
modified by coldel0x09
select ...
Reply With Quote
  #3 (permalink)  
Old 10-24-07, 12:20
JDionne JDionne is offline
Registered User
 
Join Date: Aug 2002
Location: Charlotte NC
Posts: 663
Is there a chart or list that displays the reprenentation of different delimiters? I need to use the |
__________________
------------
And back to SQL Server....I always find my way home
View my Linkedin profile
Reply With Quote
  #4 (permalink)  
Old 10-24-07, 12:47
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
"|" is usually represented by "|", similarly to other printable characters. As for the non-printable characters... have you heard anything about ASCII?
Reply With Quote
  #5 (permalink)  
Old 10-24-07, 13:26
JDionne JDionne is offline
Registered User
 
Join Date: Aug 2002
Location: Charlotte NC
Posts: 663
Wow that was kinda rude...
Just trying to use the comunity to learn...
Sorry I asked
__________________
------------
And back to SQL Server....I always find my way home
View my Linkedin profile
Reply With Quote
  #6 (permalink)  
Old 10-24-07, 13:55
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
I'm sorry if I hurt your feelings. My sarcasm was caused by the fact that the answer to your question could have been easily found in the publicly available manual, if you took time to look.
Reply With Quote
  #7 (permalink)  
Old 10-24-07, 14:38
JDionne JDionne is offline
Registered User
 
Join Date: Aug 2002
Location: Charlotte NC
Posts: 663
For anyone that was hopeing to learn from this exchange the code that I used is as following

Code:
EXPORT TO '/export/home/mldwh/tpcint/intdata/POINT1.TXT' OF DEL MODIFIED BY COLDEL| select * FROM RKSA_GSIS_RKEM_POINT1
Hope this helps
__________________
------------
And back to SQL Server....I always find my way home
View my Linkedin profile
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