LONGVARCHAR datatype usage in Universe stage

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
sujaoschin
Premium Member
Premium Member
Posts: 102
Joined: Tue Jan 31, 2006 4:13 am

LONGVARCHAR datatype usage in Universe stage

Post by sujaoschin »

I am having the input columns with datatypes of

COLUMN NAME-DATATYPE-LENGTH
1)ASSETNUM-VARCHAR-12
2)DESCRIPTION-LONGVARCHAR-4857600


Condition is 'If the assetnum is repeated, then concatenate all the description values

Eg-
assetnum description
1 apple
2 mango
1 mandarin

Ans should be (output) -
Assetnum description
1 apple,mandarin
2 mango

So I created a Universe for these columns. When I gave 'CREATE TABLE REPHIST_UNV(ASSETNUM VARCHAR(12), AS_DESCRIPTION_LD LONGVARCHAR(4857600)); in Edit DDL tab of Universe stage I am getting this error.

Column 'DESCRIPTION' use SQL types that are not supported by this data source. Is there any other datatype for Universe to store the CLOB datatype?
Sujatha K
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Stay with longvarchar; DataStage server strings can be as long as you wish (limitation is how much virtual address space your process can allocate, not an actual number-of-bytes one).
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Use VARCHAR(65532) - UniVerse does not have a LONG VARCHAR data type.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sujaoschin
Premium Member
Premium Member
Posts: 102
Joined: Tue Jan 31, 2006 4:13 am

Post by sujaoschin »

Thanks. Instead of using universe stage I tried with sort and transformer ( stage variable ) for concatenation. It worked.
Sujatha K
Post Reply