how to handle CLOB datatype in Datastage?

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
balaya.ds
Participant
Posts: 27
Joined: Fri Dec 25, 2009 10:50 pm

how to handle CLOB datatype in Datastage?

Post by balaya.ds »

how to handle CLOB datatype in Datastage?
Sudheer
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

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?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

An exact search for CLOB here should help answer your question, seeing as how you're not the first person to ask.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Post by Sreenivasulu »

Supporting CLOB and BLOB datatypes would be a very welcome idea for the future releases.

Regards
Sreeni
vivekgadwal
Premium Member
Premium Member
Posts: 457
Joined: Tue Sep 25, 2007 4:05 pm

Re: how to handle CLOB datatype in Datastage?

Post by vivekgadwal »

balaya.ds wrote:how to handle CLOB datatype in Datastage?
Use LongVarchar(n) datatype within 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
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Something to note... 2000 is not really a 'long' varchar. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
vivekgadwal
Premium Member
Premium Member
Posts: 457
Joined: Tue Sep 25, 2007 4:05 pm

Post by vivekgadwal »

chulett wrote:Something to note... 2000 is not really a 'long' varchar. :wink:
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).

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
Post Reply