473,748 Members | 5,429 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

unable to load data into long varchar field

Greetings,

Machine : Pentium IV
Os Windows 2000 server
Product : DB2 UDB Release : 7.2

We are fail to load the following data file format into db2 database
table that has long varchar data type. The load command with
'delprioritycha r' option does not seem to help much on the loading
process.

DDL structure
---------------
-----------------------------------------------
-- DDL Statements for table LAB .RESULTT
------------------------------------------------

CREATE TABLE LAB.RESULTT2 (
REQUEST INTEGER NOT NULL ,
PANEL VARCHAR(3) NOT NULL ,
TIEBREAKER INTEGER NOT NULL ,
TEXT_REPORT LONG VARCHAR)
IN LISUSRTBLSPACE_ 2 ;

-- DDL Statements for primary key on Table LAB .RESULTT

ALTER TABLE LAB.RESULTT2
ADD PRIMARY KEY
(REQUEST,
PANEL,
TIEBREAKER);
Data File
---------
50394|HPE| 0|ENCAP\
2\
rec\
rtf\
pnoraini\
6\
3503\
{\\rtf1\\ansi\\ ansicpg1252\\uc 1
\\deff0\\deflan g1033\\deflangf e1033{\\fonttbl {\\f0\\froman\\ fcharset0\\fprq 2{\\*\\panose
020206030504050 20304}Times New
Roman;}{\\f2\\f modern\\fcharse t0\\fprq1{\\*\\ panose
020703090202050 20404}Courier New;}}{\\colort bl;\\red0\\gree n0\\blue0;
\
\\red0\\green0\ \blue255;\\red0 \\green255\\blu e255;\\red0\\gr een255\\blue0;\ \red255\\green0 \\blue255;\\red 255\\green0\\bl ue0;\\red255\\g reen255\\blue0; \\red255\\green 255\\blue255;\\ red0\\green0\\b lue128;\\red0\\ green128\\blue1 28;\\red0\\gree n128\\blue0;\\r ed128\\green0\\ blue128;
\
\\red128\\green 0\\blue0;\\red1 28\\green128\\b lue0;\\red128\\ green128\\blue1 28;\\red192\\gr een192\\blue192 ;}{\\stylesheet {\\nowidctlpar\ \widctlpar\\adj ustright
\\fs20\\lang205 7\\cgrid \\snext0 Normal;}{\\*\\c s10 \\additive Default
Paragraph Font;}{
\
\\s15\\nowidctl par\\widctlpar\ \adjustright \\f2\\fs20\\lan g2057\\cgrid
\\sbasedon0 \\snext15 Plain Text;}}{\\info{ \\title
HISTOPATHOLOGY} {\\author PATHOLOGY18}{\\ operator
PATHOLOGY18}{\\ creatim\\yr2002 \\mo8\\dy12\\hr 8\\min41}{\\rev tim\\yr2002\\mo 8\\dy12\\hr8\\m in41}{\\version 2}
\
{\\edmins0}{\\n ofpages1}{\\nof words0}{\\nofch ars0}{\\*\\comp any
PATHOLOGY DEPT}{\\nofchar sws0}{\\vern71} }\\paperw11906\ \paperh16838\\m argl1152\\margr 1152
\\widowctrl\\ft nbj\\aenddoc\\h yphcaps0\\forms hade\\viewkind4 \\viewscale85\\ pgbrdrhead\\pgb rdrfoot
\\fet0\\sectd
\
\\linex0\\endnh ere\\sectdefaul tcl
{\\*\\pnseclvl1 \\pnucrm\\pnsta rt1\\pnindent72 0\\pnhang{\\pnt xta
..}}{\\*\\pnsec lvl2\\pnucltr\\ pnstart1\\pnind ent720\\pnhang{ \\pntxta
..}}{\\*\\pnsec lvl3\\pndec\\pn start1\\pninden t720\\pnhang{\\ pntxta
..}}{\\*\\pnsec lvl4
\
\\pnlcltr\\pnst art1\\pnindent7 20\\pnhang{\\pn txta
)}}{\\*\\pnsecl vl5\\pndec\\pns tart1\\pnindent 720\\pnhang{\\p ntxtb
(}{\\pntxta )}}{\\*\\pnsecl vl6\\pnlcltr\\p nstart1\\pninde nt720\\pnhang{\ \pntxtb
(}{\\pntxta )}}{\\*\\pnsecl vl7\\pnlcrm\\pn start1\\pninden t720\\pnhang{\\ pntxtb
(}
\
{\\pntxta )}}{\\*\\pnsecl vl8\\pnlcltr\\p nstart1\\pninde nt720\\pnhang{\ \pntxtb
(}{\\pntxta )}}{\\*\\pnsecl vl9\\pnlcrm\\pn start1\\pninden t720\\pnhang{\\ pntxtb
(}{\\pntxta )}}\\pard\\plai n
\\s15\\qc\\nowi dctlpar\\widctl par\\adjustrigh t
\\f2\\fs20\\lan g2057\\cgrid {\\b\\fs24\\ul
\
HISTOPATHOLOGY
\
\\par }\\pard \\s15\\nowidctl par\\widctlpar\ \adjustright {\\b\\fs24
\
\\par R 6755/2002
\
\\par
\
\\par }{\\fs24 MACROSCOPIC:
\
\\par
\
\\par }\\pard \\s15\\qj\\nowi dctlpar\\widctl par\\adjustrigh t {\\fs24
Received 1 paraffin block, four H&E stained slides and 10 slides
stained for Vimentin, Cytokeratin, CD 30, LCA, T-cell, B-cell, NSE,
Chromogranin and HMB45.
\
\\par }\\pard \\s15\\nowidctl par\\widctlpar\ \adjustright {\\fs24
\
\\par
\
\\par MICROSCOPIC:
\
\\par
\
\\par }\\pard \\s15\\qj\\nowi dctlpar\\widctl par\\adjustrigh t {\\fs24
Lymph node. There is marked effacement
\
of its architecture. The lymph node is largely infiltrated by plump
spindle shaped or epithelioid cells arranged in nests separated by
fine and coarse collagen bundles. The cells contain clear or
amhophilic cytoplasm having rounded or ovoid vesicular nu
\
clei with prominent nucleoli.
\
\\par Immunohistochem istry studies show the tumour cells are strongly
immunoreactive to Vimentin and S100, focally stroma immunoreactive to
HMB45, equivocal with NSE and Desmin but non-reactive to CK and Mic2.
\
\\par }\\pard \\s15\\nowidctl par\\widctlpar\ \adjustright {\\fs24
\
\\par
\
\\par DIAGNOSIS:
\
\\par
\
\\par Lymph node: Metastatic Tumour.
\
\\par Morphological features and immunohistochem istry
\
\\par studies are suggestive of Clear cell Sarcoma of
\
\\par Soft Tissue (Melanoma of Soft Parts).
\
\\par
\
\\par
\
\\par
\
\\par
\
\\par
\
\\par Dr. Arni Talib
\
\\par (Pathologist) 2002-08-09
\
\\par Na.
\
\\par T 08 M 88006
\
\\par Tarikh/Masa laporan ditaip : 10/8/02 11:46}{
\
\\par }}HISTOPATHOLOG Y@@\
EEEEEEEEEEEEEE\
\
R 6755/2002@@\
AAAAAAAAAAA\
\
MACROSCOPIC:\
\
Received 1 paraffin block, four H&E stained slides and 10 slides
stained \
for Vimentin, Cytokeratin, CD 30, LCA, T-cell, B-cell, NSE,
Chromogranin \
and HMB45.\
\
\
MICROSCOPIC:\
\
Lymph node. There is marked effacement of its architecture. The
lymph \
node is largely infiltrated by plump spindle shaped or epithelioid
cells \
arranged in nests separated by fine and coarse collagen bundles. The
\
cells contain clear or amhophilic cytoplasm having rounded or ovoid \
vesicular nuclei with prominent nucleoli. \
Immunohistochem istry studies show the tumour cells are strongly \
immunoreactive to Vimentin and S100, focally stroma immunoreactive to
\
HMB45, equivocal with NSE and Desmin but non-reactive to CK and Mic2.\
\
\
DIAGNOSIS:\
\
Lymph node: Metastatic Tumour.\
Morphological features and immunohistochem istry \
studies are suggestive of Clear cell Sarcoma of \
Soft Tissue (Melanoma of Soft Parts).\
\
\
\
\
\
Dr. Arni Talib\
(Pathologist) 2002-08-09\
Na.\
T 08 M 88006\
Tarikh/Masa laporan ditaip : 10/8/02 11:46\
Command used to load data
---------------------------
CONNECT TO LISDB;

LOAD FROM F:\DATA\data3\r esultt OF DEL MODIFIED BY norowwarnings
delprioritychar
pagefreespace=0 totalfreespace= 0 coldel| chardel"" decpt.
timeformat=""HH :MM"" dateformat=""DD/MM/YYYY""
MESSAGES db2load.msg INSERT INTO LAB.RESULTT2 COPY NO INDEXING MODE
AUTOSELECT ;

commit work;

As you can see the 3rd column of the data file is a text data
generated by
an application and was stored in another RDBMS database(Unify) . We
dump out
the data from the Unify RDBMS database and load the data into DB2
database with
above mentioned DDL structure.

The LOAD command only insert the first line as shown below

50394|HPE| 0|ENCAP\
Rest of the data never get loaded. I'm not sure of other alternative
of resolving this problem. Has anyone encounter such problem before?

Prompt feedback would be very much appreciated

Thanks in advance

Uthuras
Nov 12 '05 #1
1 5899
Your LOAD statement specifies using a double quote (") as the character
string delimiter. I didn't see it in the data - either at the start or
the end of the string. Try adding it at both ends as part of your
extract process. Without special handling; the delimiter character
cannot appear within the string.

Phil Sherman

Uthuras wrote:
Greetings,

Machine : Pentium IV
Os Windows 2000 server
Product : DB2 UDB Release : 7.2

We are fail to load the following data file format into db2 database
table that has long varchar data type. The load command with
'delprioritycha r' option does not seem to help much on the loading
process.
Data File
---------
50394|HPE| 0|ENCAP\
2\
rec\
rtf\ ........... \
\
\
Dr. Arni Talib\
(Pathologist) 2002-08-09\
Na.\
T 08 M 88006\
Tarikh/Masa laporan ditaip : 10/8/02 11:46\
Command used to load data
---------------------------
CONNECT TO LISDB;

LOAD FROM F:\DATA\data3\r esultt OF DEL MODIFIED BY norowwarnings
delprioritychar
pagefreespace=0 totalfreespace= 0 coldel| chardel"" decpt.
timeformat=""HH :MM"" dateformat=""DD/MM/YYYY""
MESSAGES db2load.msg INSERT INTO LAB.RESULTT2 COPY NO INDEXING MODE
AUTOSELECT ;

commit work;

As you can see the 3rd column of the data file is a text data
generated by
an application and was stored in another RDBMS database(Unify) . We
dump out
the data from the Unify RDBMS database and load the data into DB2
database with
above mentioned DDL structure.

The LOAD command only insert the first line as shown below

50394|HPE| 0|ENCAP\
Rest of the data never get loaded. I'm not sure of other alternative
of resolving this problem. Has anyone encounter such problem before?

Prompt feedback would be very much appreciated

Thanks in advance

Uthuras


Nov 12 '05 #2

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

Similar topics

0
482
by: Preston Landers | last post by:
Hello all. I am trying to write a query that "just" switches some data around so it is shown in a slightly different format. I am already able to do what I want in Oracle 8i, but I am having trouble making it work in SQL Server 2000. I am not a database newbie, but I can't seem to figure this one out so I am turning to the newsgroup. I am thinking that some of the SQL Gurus out there have done this very thing a thousand times before...
2
2983
by: Uthuras | last post by:
Greetings all, Machine : PENTIUM Os :Windows 2000 Product : DB2 UDB EE Release : 7.2 I've extracted data from a RDBMS database and try to load into DB2 database. I extracted the data in the form of delimited ASCII format. The separator for each colum is '|'
7
4784
by: James o'konnor | last post by:
hello. i have the next for create one table into db2 CREATE TABLE "MYSQUEMA"."TABLADEMO" ( "ID" INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY ( START WITH +0 INCREMENT BY +1 MINVALUE +0 MAXVALUE +2147483647 NO CYCLE
6
1780
by: Jon Davis | last post by:
I like the drag-and-drop accessibility of dragging a table to a Web Forms designer and seeing a SqlDataAdapter automatically created for me.. being able to create a DataSet from that is fun and exciting, because now with this schema based data outline Visual Studio provides me with a typed class for managing data complete with Intellisense menus exposing my own field names as C# object properties ... cool .. Anyway, I have a problem. I...
5
3405
by: rAinDeEr | last post by:
Hi, I have a web application with a table to store terms and conditions of a Company. This may some times run into many pages and some times it may be just a few sentences. It is a character text field. I want to know which Data type I need to use so that it doesnt waste memory. thanks in advance, rAinDeEr
2
9912
by: imam888 | last post by:
How do I load "varchar for bit" data in hexadecimal format into a DB2 table ? Table definition =========== create table test ( i integer, v varchar for bit data (16)) db2 "IMPORT FROM "data.txt" OF DEL MODIFIED BY COLDEL, METHOD P (1, 2) MESSAGES "/tmp/db2-load-error.log" INSERT INTO test (i,v)";
3
5241
by: den 2005 | last post by:
Hi everyone, Here is code working on..Trying to insert record with a column with Image or VarBinary datatype in sql database from a existing jpeg image file, then retrieve this image from database and display it in a Image web control dynamically(at runtime). The process after being displayed in the web control, user click insert/add button, it converts the image(jpeg) file to bytes and store it the database with Image or VarBinary...
11
4379
by: c676228 | last post by:
Hi everyone, I am just wodering in asp program, if there is anybody writing store procedure for inserting data into database since there are so many parameters need to be passed into store procedure(assume there are many columns in the table). I need to insert data into two separate tables, the relation between these two tables is 1 row of data in table1 could have multiple rows in table2 related to table1, but if the data insertion into...
2
514
by: Steve Rainbird | last post by:
Is there way of telling the load utility that if it finds spaces in the input file, where it expects an integer, to insert a zero? Currently I am getting an error. SQL3116W The field value in row "F0-1" and column "46" is missing, but the target column is not nullable. TIA
0
8826
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9241
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8239
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6793
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3303
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2777
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2211
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.