Does anybody have an example of an insert into a CLOB column in a Cobol program. I've had a Google, and I found LOBLOC.SQB on the IBM website, but I'm having trouble with it as it does not do an insert.
Alas, the problem I was attempting to resolve still exists.....
I have a DB2 table with a CLOB column. When I insert to this column, the data is truncated. I've used CLOBs and CLOB locators all to no avail. The data gets truncated at around 3500 bytes, but the size of the CLOB is 200,000 bytes. The table page size is 32K so there doesn't seem to be any reason for this truncation.
I'd still be happy to see anybody else's code of an insert to a CLOB column, and also hear of any similar troubles that people may have had with this data type.
I'll close this thread as I don't think it's a strict Cobol or a DB2 issue, more a developer error.
Frederico asked me for a copy of the program, so I cut down and tidied up the original just leaving the insert so that I could send it to him. As I then had a version of the program that just did the insert I compiled and ran it. And it worked fine!
I'm going to either pass the program back to the original developer in order to debug or do it myself.
Many thanks for your help.
Frederico, I won't waste your time sending you the listing, as the listing I was going to send works! Thanks for your help though.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.