473,383 Members | 1,737 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

No double quote in UDB Export DEL file

Hi all -
I wonder if there is any way to specify in UDB for Windows version 7 so that
in the DEL Export file, there is no double quote (i.e. ") nor any character
strings surrounding the columns of the exported data.
Any information is appreciated.
Thanks in advance.
aw
Nov 12 '05 #1
3 5716
You can export to type IXF which doesn't use delimiters. Of course; you
will have to write a read utility to read the data.

As an alternative; you can use the "-x" clp option to write output
without headers. This will expand all char type columns to their maximum
length, make all defined data types an apropriate fixed length, insert a
single space between columns, and write the whole smash to your output.
db2 -x "select * from t1" >t1.out
The above command will do what you want and write the output to t1.out.
Read the "command reference" manual for additional details about options
for the "db2"command. Other options exist that can route output to a file.

Phil Sherman
dps027 wrote:
Hi all -
I wonder if there is any way to specify in UDB for Windows version 7 so that
in the DEL Export file, there is no double quote (i.e. ") nor any character
strings surrounding the columns of the exported data.
Any information is appreciated.
Thanks in advance.
aw


Nov 12 '05 #2
Thanks for the information.

But I probably may not be able to use both suggestions because of specific
requirement -
1. I need to create an interface file with ascii characters, and due to cost
constraint, I cannot afford writing another read utility for IXF files
(though, I think I will still have a look on the IXF file to see if there is
any surprise, in a good way).
2. I must use export due to codepage requirements, the clp does not quite
handle codepage specifications.

Thanks.
aw
"Philip Sherman" <ps******@ameritech.net> wrote in message
news:8r**************@newssvr19.news.prodigy.com.. .
You can export to type IXF which doesn't use delimiters. Of course; you
will have to write a read utility to read the data.

As an alternative; you can use the "-x" clp option to write output
without headers. This will expand all char type columns to their maximum
length, make all defined data types an apropriate fixed length, insert a
single space between columns, and write the whole smash to your output.
db2 -x "select * from t1" >t1.out
The above command will do what you want and write the output to t1.out.
Read the "command reference" manual for additional details about options
for the "db2"command. Other options exist that can route output to a file.

Phil Sherman
dps027 wrote:
Hi all -
I wonder if there is any way to specify in UDB for Windows version 7 so that in the DEL Export file, there is no double quote (i.e. ") nor any character strings surrounding the columns of the exported data.
Any information is appreciated.
Thanks in advance.
aw

Nov 12 '05 #3
dps027 wrote:
Hi all -
I wonder if there is any way to specify in UDB for Windows version 7 so
that in the DEL Export file, there is no double quote (i.e. ") nor any
character strings surrounding the columns of the exported data.
Any information is appreciated.


Isn't the export option "MODIFIED BY CHARDEL x" something you could use?
Maybe you can use a space as character string delimiter?

How about using "sed" to modify the result in the way you like?

sed -e 's/"//g'

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

205
by: Jeremy Siek | last post by:
CALL FOR PAPERS/PARTICIPATION C++, Boost, and the Future of C++ Libraries Workshop at OOPSLA October 24-28, 2004 Vancouver, British Columbia, Canada http://tinyurl.com/4n5pf Submissions
6
by: maricel | last post by:
Is there anybody out there who have any idea why EXPORT is relatively slower when putting the output file on a network drive - map drive from onother PC compared to putting it on my local PC drive...
1
by: Kent Lewandowski | last post by:
Hi, I saw this post from 3 years ago regarding converting DOUBLE values to CHAR in ibm DB2. Now I'm having the same problem. No real solution was posted to that old thread. Has anyone got...
5
by: Tim Eliot | last post by:
Just wondering if anyone has hit the following issue and how you might have sorted it out. I am using the command: DoCmd.TransferText acExportMerge, , stDataSource, stFileName, True after...
1
by: mike11d11 | last post by:
I was wondering if it was possible to export information from a pivot chart when double clicking on the item I want. For example I have a pivot chart with Four items in the legend and they are...
2
by: tkirankumar | last post by:
Hi all, uname -a SunOS cbmrsd1a1 5.10 Generic_118833-17 sun4us sparc FJSV,GPUZC-M g++ -v Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/specs Configured with:...
1
by: TitusBarj | last post by:
Hi all I have a problem I've been working at the few past days. I want to export a string in an excel format and in the meantime reload the page I'm at. The only thing I try do do is to disable...
1
by: Abhishek Bhatt | last post by:
Need to export table into csv file. Tried following: DoCmd.TransferText acExportDelim, "", TABLENAME, "C:\abc.csv", False, "" But the exported file contains data enclosed in double quotes i.e....
8
by: iheartvba | last post by:
Hi I am using Access 2007 and am trying to export a query to a fixed length text file. I tried using the following code to export the text file: DoCmd.TransferText acExportFixed, , "qryFFRDeFile",...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.