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 > Export Function to Delimiter Free Text File

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-07-04, 08:53
atmosphere atmosphere is offline
Registered User
 
Join Date: Aug 2004
Posts: 19
Export Function to Delimiter Free Text File

Hi

Im trying to export to a delimeter free text file. What i mean by this is that im using teh export function to export a query to a text file but i want my records to be side by side with no commas or quotations to seperate the values. Please help,
Reply With Quote
  #2 (permalink)  
Old 09-07-04, 14:47
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You can do a select on the table from the CLP and pipe the output to file without headers. The space(s) between columns depends on the column header (column name) length, even though column headings are surpressed with the -x option using the CLP. But the spacing will be fixed for each row, regardless of the data.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 09-07-04, 16:17
atmosphere atmosphere is offline
Registered User
 
Join Date: Aug 2004
Posts: 19
Quote:
Originally Posted by Marcus_A
You can do a select on the table from the CLP and pipe the output to file without headers. The space(s) between columns depends on the column header (column name) length, even though column headings are surpressed with the -x option using the CLP. But the spacing will be fixed for each row, regardless of the data.
Hey

Thanks for teh reply but there is a problem. My column is made by concatenating a few strings of columns together. This is working fine except for one thing, for some reason after each row there are a few thousand spaces!?!?!?

Is there a way to limit the width of a column?
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