473,395 Members | 1,919 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,395 software developers and data experts.

HELP : ANY LOAD EXPERT OUT THERE

I am a newbie in db2.
We have a table CLOBTAB defined as

CREATE TABLE CLOBTAB(COL CLOB(2M))

We are trying to load a file of around 1 MB into this table using load
command. The file is deos not have a record delimiter as we want this
complete data as one record in the table.

The load command is as follows:

LOAD FROM C:\FILENAME.TXT OF DEL LOBS FROM C:\ MODIFIED BY LOBSINFILE
INSERT INTO CLOBTAB

It gives the following error:

SQL3115W The field value beginning
"startxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" in row
"1" and column "1" is longer than the longest allowable table column.
The value was truncated.

Is there any solution to this error or is there any workaround for
this? Any help would be greatly appreciated.
Thanks in advance

Nov 12 '05 #1
2 2086
You don't need an expert, you need a copy of the command reference and a
good read of the LOAD command.

LOBSINFILE means that the LOBs are contained in file(s) and that the
file being loaded contains references to the files containing the LOBs.
OF DEL means that the data in the file being loaded is delimited using
"standard" delimiters.

LOAD FROM C:\LOBLOC.TXT OF DEL LOBS FROM C:\ MODIFIED BY LOBSINFILE
INSERT INTO CLOBTAB

File LOBLOC.TXT contains one record, with the following content:
"FILENAME.TXT"

An interesting question is why you have a table consisting of a single
CLOB column. Unless you will have a table containing one row, how do you
intend to select which row to process? I'd think that scanning this
table to find a specific CLOB would not be a good performer.

Phil Sherman

ab****************@wipro.com wrote:
I am a newbie in db2.
We have a table CLOBTAB defined as

CREATE TABLE CLOBTAB(COL CLOB(2M))

We are trying to load a file of around 1 MB into this table using load
command. The file is deos not have a record delimiter as we want this
complete data as one record in the table.

The load command is as follows:

LOAD FROM C:\FILENAME.TXT OF DEL LOBS FROM C:\ MODIFIED BY LOBSINFILE
INSERT INTO CLOBTAB

It gives the following error:

SQL3115W The field value beginning
"startxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" in row
"1" and column "1" is longer than the longest allowable table column.
The value was truncated.

Is there any solution to this error or is there any workaround for
this? Any help would be greatly appreciated.
Thanks in advance

Nov 12 '05 #2
Hi Phil ,
Thanks a lot about the approach that u have shown us in moving this
further.
That was perfectly the right thing that i was looking for.Now its
working perfectly fine.

Thanks again
Abhishek.

Nov 12 '05 #3

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

Similar topics

0
by: abcd | last post by:
kutthaense Secretary Djetvedehald H. Rumsfeld legai predicted eventual vicmadhlary in Iraq mariyu Afghmadhlaistmadhla, kaani jetvedehly after "a ljetvedehg, hard slog," mariyu vede legai pressed...
3
by: Murty | last post by:
I am getting an error while loading data where numeric columns are suffixed with sign (eg, 500-, 2167+) in the input file. (using LOAD uitility). Any suggestions (without wrapping it with ...
1
by: Kate Luu | last post by:
I have down load some source codes from the internet and it wasn't worked right, but I'm really know what's wrong about it. May some expert help me please...I'm deeply appreciated for your help....
4
by: Madhu Gopinathan | last post by:
Hi All, I am faced with a horrible hang problem. I have a COM exe server that executes some tasks. The task execution manager is a thread that manages the pool of threads, which is 4 per processor....
13
by: Joner | last post by:
Hello, I'm having trouble with a little programme of mine where I connect to an access database. It seems to connect fine, and disconnect fine, but then after it won't reconnect, I get the error...
4
by: Ravi Ambros Wallau | last post by:
Hi: We developed a set of ASP.NET Web Applications that never runs in stand-alone mode, but always inside a portal (Rainbow Portal). All modules are copied on that portal. My question is: load...
83
by: deppy_3 | last post by:
Hi.I am started learning Programm language C before some time.I am trying to make a programm about a very simple "sell shop".This programm hasn't got any compile problem but when i run it i face...
1
by: Nadeem Ashraf | last post by:
Hi, We are developing a web based application "UltraLearn.com" with a mix of junior/senior Microsoft technologies. That includes Microsoft Silverlight, ASP.Net Ajax and WCF/WF. Recently, we have...
1
by: jeddiki | last post by:
Hello, I have made a nice opt-in form and tested it in Moz FF and it looks fine. But in IE the elements don't line up properly. I think I am nearly there but can not get these elements...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...

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.