Solved

export using .del files problem

Posted on 2007-03-29
5
613 Views
Last Modified: 2008-02-01
Hi,

I'm using the following command to export data from DB2 on a windows server:
export to <table>.del of del select * from DB2ADMIN.<table>

One of the tables has a problem as the .del file generated has 54 records that wrap to the next line. When I perform a load onto DB2 on UNIX using:
load from <table>.del of del modified by codepage=819 replace into <table>

The wrapped 54 rows do not load.

The table has 35,200 rows and each record is up to 2300 bytes long (including VARCHAR 2000 and VARCHAR 50).

Is there a parameter or technique to stop the bad formatting in my .del file?

Thanks
0
Comment
Question by:codemonkey156
5 Comments
 
LVL 37

Expert Comment

by:momi_sabag
ID: 18814890
if you are performing both the export and the load into udb, one possible solution is to use another format and not the delimited one,
can you try that and check if it works ?
plus, can you notice something different in those 54 rows (maybe they have lf cr in the varchar fields), or do they seem like all the other rows ?

0
 
LVL 45

Expert Comment

by:Kent Olsen
ID: 18815490
Hello codemonkey156,

Are you sure that they wrap?  I'm not aware that export sets an arbitrary limit on line lengths.  DB2 should warn if a column is wider than 255 characters.

Perhaps the string data contains your delimiter.  That's a pretty common hitch.



Kent
0
 
LVL 13

Accepted Solution

by:
ghp7000 earned 125 total points
ID: 18816170
when you load the file use the modified by delprioritychar modifier
0
 

Author Comment

by:codemonkey156
ID: 18865366
Thanks for your comments. I will try on Tuesday and get back to you.
0
 

Author Comment

by:codemonkey156
ID: 18899716
Thanks ghp7000. The modifier did the trick!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
DB2 SQL causing overflow error 36 86
Access to SYSIBM tables 7 114
DB2 V9.7 restore 5 50
Selecting rows in WHERE clause vs JOIN 4 11
Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question