Re: HOW in the HECK can we import comma quote delimted ASCII !!!????
Posted in 1995
In article <3mloeo$8eg@dialin01.teaminfinity.com>, root@TeamInfinity.com says most
eloquently...
>
>
>I cannot find out how to import comma quote delimited text into Informix
>if my life depended on it. We looked at dbload and got it to work ONLY
>after converting our comma quote delimited ascii text file to single
>character limited ascii text with much labor. comma quote delimited
>ascii is very much a standard data format. There MUST be a way to import
>comma quote delimited text into informix, but I sure could not find it !
>See we are trying to import dbaseIII and paradox files into informix by
>first converting them to the WORLD STANDARD of comma quote delimited ascii
>text, but informix's dbload seems to only allow importation of ascii text
>that is delimited with a SINGLE character. Please tell us this is NOT so.
>
>
> Thanks in advance,
>
> root@TeamInfinity.com (Eric Sean Webber)
>
>
Don't fight it man...take a deep breath...it IS so...or as Picard says, "Make it so.".
Use sed to replace all your commas after your quotes with pipes. Then replace
all the quotes with nothing. You now have a load file.
Yes this is over simplistic....It's been a while since I had a load file created
from something like this, but sed probably is the answer. You'll probably have to
do several clean-ups to get rid of spaces 'n such, but it can be done. Use a 100-row
sample first to get it right then go fer broke.
Between sed and awk you should be able to address this problem. And sed/awk are
available for PCs, either as GNU shareware or payware from MKS et al.
As far as comma-quote being a standard, well so was dBASE III, right?
:-)
Tim
--
\\\\|//
(o o)
==============================---o00--(_)--00o---============================
Tim Schaefer http://www.gate.net/~tschaefe
The Computer Business Company, Inc. tschaefe@gate.net
Coconut Creek, FL, USA DILLIGAF!
Ub...eh...Now, see, who gets to ask the questions here? --Ross Perot
=============================================================================