TIA,
steve
How big is the CLOB value? Maybe it is only 4K long? (LOBs are varying
length.)
If you think it is longer, could you post some code?
--
Knut Stolze
DB2 Spatial Extender
IBM Silicon Valley Lab
sql: db2 "select content from documentmetdata" >file
thanks,
steve
Knut Stolze <sto...@us.ibm.com> wrote in message news:<slrnafd5l2...@stolze.svl.ibm.com>...
How long are your LOB values? What does the following query return:
SELECT LENGTH(content)
FROM documentmetdata
db2 "select max(length(content)) from documentmetadata"
1
-----------
1048575
1 record(s) selected.
Additional info on column....
$ db2 "describe select * from documentmetadata"
SQLDA Information
sqldaid : SQLDA sqldabc: 2304 sqln: 52 sqld: 26
Column Information
sqltype sqllen sqlname.data
sqlname.length sqllonglen sqldatatype_name.data
sqldatatype_name.length
-------------------- ------ ------------------------------
-------------- ---------- ---------------------------
-----------------------
<snip/>
408 CLOB 0 CONTENT
7 1048576 SYSIBM .CLOB
13
Knut Stolze <sto...@us.ibm.com> wrote in message news:<slrnaff4s2...@stolze.svl.ibm.com>...
When using SELECT on CLP (which is what you are doing), LOBs are truncated to the first 4K of the
object.
What you are interesed in, is looking at the additional clause on the FETCH statement for LOBs (in the
above mentioned chapter of the Command Reference Guide). You need to declare a cursor on CLP, open it,
and then just start fetching those lobs (they will go into a file).
If you want a GUI tool, my Advanced Query Tool at www.querytool.com
has a lot of capabilities for manipulating LOBs - it wil display up to
the first 10K bytes of a LOB/CLOB in the GUI. For LOBs larger than
this it will export them to a file, which you can then view in
whatever Windows application is appropriate. It also allows you to
load LOB values from files.
I am currently working on a project which uses LOBs extensively, and
these capabilities make it very easy for dealing with LOBs.
Phil Castle.
mest...@yahoo.com (Steve Mestdagh) wrote in message news:<4891ab5e.02053...@posting.google.com>...