> Hi
>
[quoted text clipped - 17 lines]
> fine with CLOBs in version 8 of DB2. Is there some work around other
> than changing my column type to varchar(32000).
Why? REPLACE does support CLOBs:
http://publib.boulder.ibm.com/infocenter/db2luw/v8/topic/com.ibm.db2.udb.doc/adm
in/r0000843.htm
$ db2 "values replace(clob('abcdef', 32000), 'cd', 'xy')"
1
-----------
abxyef
1 record(s) selected.
So what exactly is the error that you got?
> I have tried cast function also as in :
>
[quoted text clipped - 3 lines]
> The error in this case is that the query that comes in i.dataValueChar
> is too long... this again happens with replace function.
What exactly is the error message that you got?
> If i dont
> replace and just assign it to sqlString, all works fine.. something
> like:
> SET sqlString = i.dataValue;

Signature
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
amitabh.mehra@gmail.com - 30 May 2007 09:38 GMT
I get following error:
SQL0443N Routine "SYSFUN.REPLACE" (specific name "REPLACE2C") has
returned an error SQLSTATE with diagnostic text "SYSFUN:10"
> amitabh.me...@gmail.com wrote:
> > Hi
[quoted text clipped - 50 lines]
> DB2 z/OS Utilities Development
> IBM Germany
amitabh.mehra@gmail.com - 30 May 2007 10:20 GMT
It works fine when the length of the string-part that is to be
reaplaced (arg 2 of replace) is equal or greater than the new string
path (arg 3 of replace). If arg 3 is greater than arg 2 i am getting
this error. (sysfun:10)
On May 30, 1:38 pm, amitabh.me...@gmail.com wrote:
> I get following error:
> SQL0443N Routine "SYSFUN.REPLACE" (specific name "REPLACE2C") has
[quoted text clipped - 54 lines]
> > DB2 z/OS Utilities Development
> > IBM Germany