RDBMS: DB2-400 R5V2 is not the error message, it's the version. DB2 Release 5 version 2 on OS400.
If you want a repro:
Code:
create table fcelaia/t (i int, b blob(1024000))
insert into fcelaia/t values(1,blob('ABCDE'))
ALTER TABLE FCELAIA/T ALTER COLUMN B SET DATA TYPE CLOB ( 2048000)
=> Incompatible attribute of the column B of T in FCELAIA. (it's a conversion from a French error msg !)
Code:
ALTER TABLE FCELAIA/T ADD C CLOB ( 2048000)
UPDATE FCELAIA/T set C=B
=> incompatible value with column datatype or value C.
Code:
UPDATE FCELAIA/T set C=clob(B)
=> The argument of the function clob is incorrect