how to handle CLOB datatype in Datastage?
Moderators: chulett, rschirm, roy
DataStage doesn't have a CLOB datatype, but databases do. Which database and which interface are you intending on using CLOBs with? Some are supported, some aren't supported and work and some aren't supported and won't work?
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Premium Member
- Posts: 892
- Joined: Thu Oct 16, 2003 5:18 am
-
- Premium Member
- Posts: 457
- Joined: Tue Sep 25, 2007 4:05 pm
Re: how to handle CLOB datatype in Datastage?
Use LongVarchar(n) datatype within DataStage.balaya.ds wrote:how to handle CLOB datatype in Datastage?
Where "n" depends on what is in the CLOB field. For example, when I had to use this, I enquired the max Characters that could be present in the field and they (DBA) told me it will not be more than 1500 chars in the field. So, I ended up using LongVarchar(2000), just to be on the safe side. It all depends on the size of the data residing within the field on the Database.
Hope this helps...
Vivek Gadwal
Experience is what you get when you didn't get what you wanted
Experience is what you get when you didn't get what you wanted
-
- Premium Member
- Posts: 457
- Joined: Tue Sep 25, 2007 4:05 pm
Yeah, true...I was actually handling 2 CLOB columns - in separate jobs, one with a full receipt image and the other has signature image (which is not that big). The first one was massive (8000-9000 characters) and the second one was very small (1500 chars approximately).chulett wrote:Something to note... 2000 is not really a 'long' varchar.
However, I had both fields declared as "LongVarchar" and that is what I was trying to tell the OP :D
Vivek Gadwal
Experience is what you get when you didn't get what you wanted
Experience is what you get when you didn't get what you wanted