If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > how to import multi line data

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-03-03, 03:14
lina37 lina37 is offline
Registered User
 
Join Date: Nov 2003
Location: singapore
Posts: 7
Question how to import multi line data

hi

OS: WIN2K and AIX
version: 8.1.3 WSE and 7.2.7 EE

I need to import a del format data. however, it has a column that stores multi line. I must export in del to allow amendments on the file and re-import them back. However, when importing back it treats multiline data as separate row and reject all records.

table structure:
===========
CREATE TABLE mytable
(
ID INTEGER NOT NULL,
SSTEXT VARCHAR(500) NOT NULL,
NUMIMAGE SMALLINT NOT NULL DEFAULT 0,
NUMCONTENT SMALLINT NOT NULL DEFAULT 0,
NUMPDF SMALLINT NOT NULL DEFAULT 0,
constraint mytable_PK primary key (ID)
)
in MYAPPSPACE1;

data:
=====
99,"<?xml version='1.0' encoding='ISO-8859-1'?>
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
<xslutput method='html'/></tr>...
</table>
</xsl:template>
</xsl:stylesheet>",1,1,2

import and export script used
===================

EXPORT TO c:\mytable.del OF DEL MODIFIED BY chardel"" coldel, decpt. datesiso decplusblank MESSAGES c:\msg SELECT * FROM myblobtable;

IMPORT FROM c:\mytable.del OF DEL MODIFIED BY chardel"" coldel, decpt. COMMITCOUNT 500 MESSAGES c:\imp INSERT_UPDATE INTO mytable;


Greatly appreciate any assistance/tips.
Reply With Quote
  #2 (permalink)  
Old 12-03-03, 03:56
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You can use the DELPRIORITYCHAR File Type Modifier and this should fix your problem. See the Command Reference for more information.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 12-03-03, 04:38
lina37 lina37 is offline
Registered User
 
Join Date: Nov 2003
Location: singapore
Posts: 7
Quote:
Originally posted by Marcus_A
You can use the DELPRIORITYCHAR File Type Modifier and this should fix your problem. See the Command Reference for more information.
hi marcus

thanks. works fine in 7.2 and 8.1.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On