dbTalk Databases Forums  

Pdox DOS import problem

comp.databases.paradox comp.databases.paradox


Discuss Pdox DOS import problem in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #61  
Old   
JoeSpareBedroom
 
Posts: n/a

Default Re: Pdox DOS import problem - 03-06-2008 , 02:20 PM






"Michael Kennedy" <Info (AT) KennedySoftware (DOT) ie> wrote

Quote:
Joe,

First, as Steve said, check back over recent posts on the PDox NGs - we've
covered all this stuff many many times...

I've got a txt file with fields delimited by commas. One field contains
product descriptions, and many have words enclosed in quotation marks.

If the FULL Alpha-FIELD is enclosed/delimited by ONE Double-Quote-mark at
both ends of the fields, then that's perfect. Eg:
123,456,"alpha field",789

If there are embedded DOUBLED double-quotes WITHIN some alpha-fields, then
that's perfect also. Unfortunately, the Paradox CSV drivers are cr*p, and
don't understand this. You should follow Rodney's advice. Eg:
123,456,"Large 10"" bolts",789

If there are embedded SINGLE double-quotes WITHIN some alpha-fields, and
double-quotes are NOT used as alpha-field delimiters, you should check
those CUSTOM script options, in case you can get a combo that suits your
files. Eg:
123,456,'Large 10" bolts',789

If there are embedded SINGLE double-quotes WITHIN some alpha-fields, and
double-quotes ARE used as alpha-field delimiters, then you're in (deep?)
caca. Presumably, that file also came OUT OF a broken Paradox CSV driver!
Eg:
123,456,"Large 10" bolts",789
Worse, if there are adjacent commas near those embedded double-quotes,
you're in very very deep.... Eg:
123,456,"Large 10", and 15" bolts",789

In my PDox apps, I have a separate utility that I run on all CSV files
going into Paradox, and on all CSV files coming out, to address all the
above issues. It's all a major PITA...

- Mike

Yeah, and to make matters worse, this same supplier will change the damned
file in some other way next time they send it. Other suppliers have been
consistent for years on end, based on the file stamp for their flimport spec
files.




Reply With Quote
  #62  
Old   
JoeSpareBedroom
 
Posts: n/a

Default Re: Pdox DOS import problem - 03-06-2008 , 02:20 PM






"Michael Kennedy" <Info (AT) KennedySoftware (DOT) ie> wrote

Quote:
Joe,

First, as Steve said, check back over recent posts on the PDox NGs - we've
covered all this stuff many many times...

I've got a txt file with fields delimited by commas. One field contains
product descriptions, and many have words enclosed in quotation marks.

If the FULL Alpha-FIELD is enclosed/delimited by ONE Double-Quote-mark at
both ends of the fields, then that's perfect. Eg:
123,456,"alpha field",789

If there are embedded DOUBLED double-quotes WITHIN some alpha-fields, then
that's perfect also. Unfortunately, the Paradox CSV drivers are cr*p, and
don't understand this. You should follow Rodney's advice. Eg:
123,456,"Large 10"" bolts",789

If there are embedded SINGLE double-quotes WITHIN some alpha-fields, and
double-quotes are NOT used as alpha-field delimiters, you should check
those CUSTOM script options, in case you can get a combo that suits your
files. Eg:
123,456,'Large 10" bolts',789

If there are embedded SINGLE double-quotes WITHIN some alpha-fields, and
double-quotes ARE used as alpha-field delimiters, then you're in (deep?)
caca. Presumably, that file also came OUT OF a broken Paradox CSV driver!
Eg:
123,456,"Large 10" bolts",789
Worse, if there are adjacent commas near those embedded double-quotes,
you're in very very deep.... Eg:
123,456,"Large 10", and 15" bolts",789

In my PDox apps, I have a separate utility that I run on all CSV files
going into Paradox, and on all CSV files coming out, to address all the
above issues. It's all a major PITA...

- Mike

Yeah, and to make matters worse, this same supplier will change the damned
file in some other way next time they send it. Other suppliers have been
consistent for years on end, based on the file stamp for their flimport spec
files.




Reply With Quote
  #63  
Old   
JoeSpareBedroom
 
Posts: n/a

Default Re: Pdox DOS import problem - 03-06-2008 , 02:20 PM



"Michael Kennedy" <Info (AT) KennedySoftware (DOT) ie> wrote

Quote:
Joe,

First, as Steve said, check back over recent posts on the PDox NGs - we've
covered all this stuff many many times...

I've got a txt file with fields delimited by commas. One field contains
product descriptions, and many have words enclosed in quotation marks.

If the FULL Alpha-FIELD is enclosed/delimited by ONE Double-Quote-mark at
both ends of the fields, then that's perfect. Eg:
123,456,"alpha field",789

If there are embedded DOUBLED double-quotes WITHIN some alpha-fields, then
that's perfect also. Unfortunately, the Paradox CSV drivers are cr*p, and
don't understand this. You should follow Rodney's advice. Eg:
123,456,"Large 10"" bolts",789

If there are embedded SINGLE double-quotes WITHIN some alpha-fields, and
double-quotes are NOT used as alpha-field delimiters, you should check
those CUSTOM script options, in case you can get a combo that suits your
files. Eg:
123,456,'Large 10" bolts',789

If there are embedded SINGLE double-quotes WITHIN some alpha-fields, and
double-quotes ARE used as alpha-field delimiters, then you're in (deep?)
caca. Presumably, that file also came OUT OF a broken Paradox CSV driver!
Eg:
123,456,"Large 10" bolts",789
Worse, if there are adjacent commas near those embedded double-quotes,
you're in very very deep.... Eg:
123,456,"Large 10", and 15" bolts",789

In my PDox apps, I have a separate utility that I run on all CSV files
going into Paradox, and on all CSV files coming out, to address all the
above issues. It's all a major PITA...

- Mike

Yeah, and to make matters worse, this same supplier will change the damned
file in some other way next time they send it. Other suppliers have been
consistent for years on end, based on the file stamp for their flimport spec
files.




Reply With Quote
  #64  
Old   
JoeSpareBedroom
 
Posts: n/a

Default Re: Pdox DOS import problem - 03-06-2008 , 02:20 PM



"Michael Kennedy" <Info (AT) KennedySoftware (DOT) ie> wrote

Quote:
Joe,

First, as Steve said, check back over recent posts on the PDox NGs - we've
covered all this stuff many many times...

I've got a txt file with fields delimited by commas. One field contains
product descriptions, and many have words enclosed in quotation marks.

If the FULL Alpha-FIELD is enclosed/delimited by ONE Double-Quote-mark at
both ends of the fields, then that's perfect. Eg:
123,456,"alpha field",789

If there are embedded DOUBLED double-quotes WITHIN some alpha-fields, then
that's perfect also. Unfortunately, the Paradox CSV drivers are cr*p, and
don't understand this. You should follow Rodney's advice. Eg:
123,456,"Large 10"" bolts",789

If there are embedded SINGLE double-quotes WITHIN some alpha-fields, and
double-quotes are NOT used as alpha-field delimiters, you should check
those CUSTOM script options, in case you can get a combo that suits your
files. Eg:
123,456,'Large 10" bolts',789

If there are embedded SINGLE double-quotes WITHIN some alpha-fields, and
double-quotes ARE used as alpha-field delimiters, then you're in (deep?)
caca. Presumably, that file also came OUT OF a broken Paradox CSV driver!
Eg:
123,456,"Large 10" bolts",789
Worse, if there are adjacent commas near those embedded double-quotes,
you're in very very deep.... Eg:
123,456,"Large 10", and 15" bolts",789

In my PDox apps, I have a separate utility that I run on all CSV files
going into Paradox, and on all CSV files coming out, to address all the
above issues. It's all a major PITA...

- Mike

Yeah, and to make matters worse, this same supplier will change the damned
file in some other way next time they send it. Other suppliers have been
consistent for years on end, based on the file stamp for their flimport spec
files.




Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.