473,385 Members | 2,274 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,385 software developers and data experts.

Importing from DEL file where a column value begins with a " ?

Hi,

We seem to have encountered a bug(or working as deigned?) in the import
utility on 8.2 LUW.

We are using the standard column and char delimiters of , and " while
loading files of type DEL.

our extract programs which produce the del files, implement a rule
which states if a varchar column contains a " output this as ""

All works fine, so long as the " doesn't appear as the very FIRST
character

i.e
1,"""this is the string""",

Fails to import.

Is this a bug? or am I reading the statement in the docs. wrong?
quote:
' Any pair of character delimiters found between the enclosing
character delimiters is imported or loaded into the database'

Thanks.

Paul.

Nov 12 '05 #1
2 1192
Ian
PaulR wrote:
Hi,

We seem to have encountered a bug(or working as deigned?) in the import
utility on 8.2 LUW.

We are using the standard column and char delimiters of , and " while
loading files of type DEL.

our extract programs which produce the del files, implement a rule
which states if a varchar column contains a " output this as ""

All works fine, so long as the " doesn't appear as the very FIRST
character

i.e
1,"""this is the string""",

Fails to import.

Is this a bug? or am I reading the statement in the docs. wrong?
quote:
' Any pair of character delimiters found between the enclosing
character delimiters is imported or loaded into the database'


Working as designed. The character delimiter (default = ") should
always appear around a character column's data. Furthermore, if
the column's value contains the character delimiter, it will be
doubled.

"""this is the string"""
^ ^ = character delimiters
^^ ^^ = escaped characters within the field
Another example:

1,"this ""is the"" string"

Will import as

C1 C2
---------- --------------------
1 this "is the" string

Nov 12 '05 #2
Ian
Ian wrote:
PaulR wrote:
Hi,

We seem to have encountered a bug(or working as deigned?) in the import
utility on 8.2 LUW.

We are using the standard column and char delimiters of , and " while
loading files of type DEL.

our extract programs which produce the del files, implement a rule
which states if a varchar column contains a " output this as ""

All works fine, so long as the " doesn't appear as the very FIRST
character

i.e
1,"""this is the string""",

Fails to import.

Is this a bug? or am I reading the statement in the docs. wrong?
quote:
' Any pair of character delimiters found between the enclosing
character delimiters is imported or loaded into the database'


Oops. Ignore my previous post, I was misreading your post. Are you
saying that the construct you have above fails when you try to import
it?

What's your import statement, table DDL and the error code?

Nov 12 '05 #3

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

Similar topics

2
by: valerio | last post by:
Hi all, I've some problem to import data to DB2 using the db2move and db2look tools. Follow the problem : I have exported data from db2 v. 7 database on windows server, using the db2look and...
11
by: Grim Reaper | last post by:
I am importing a .csv file into Access that has 37 fields. My problem is that sometimes the last field only has data at the end of the column (it looks like when you import a file into Access, for...
2
by: nutthatch | last post by:
I want to be able to import an Excel spreadsheet into Access 2K using the macro command Transferspreadsheet. However, the file I am importing (over which I have no control) contains some records...
12
by: JMO | last post by:
I can import a csv file with no problem. I can also add columns to the datagrid upon import. I want to be able to start importing at the 3rd row. This will pick up the headers necessary for the...
3
by: gulllet | last post by:
I try to import a tab separated text file into sql server 2005 using the import guide. But when running the job I get the error message Error 0xc02020c5: Data Flow Task: Data conversion failed...
3
by: sejal17 | last post by:
hello Can any one tell me how to read multiple worksheets from a single excel file.I have stored that excel in xml file.so i want to read that xml that has multiple worksheet.And i want to store...
3
by: sejal17 | last post by:
hello Can any one tell me how to read multiple worksheets from a single excel file.I have stored that excel in xml file.so i want to read that xml that has multiple worksheet.And i want to store...
3
by: HistoricVFP | last post by:
Hello, I’ve been given the task of importing .dbf files from a very old version of Visual FoxPro (version 2.1) into Access (2003). When I import the data straight to Access it errors with: ...
6
by: passionateforjava | last post by:
Hi All, I am using struts application wherein I need to import file for some purpose.I have used input type="file" for the same which goes like: <input type="file" id="uploadFile" name="uploadFile"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.