Solved

export using .del files problem

Posted on 2007-03-29
5
618 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

738 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