BigInt support for Teradata in DataStage 8

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
DS_FocusGroup
Premium Member
Premium Member
Posts: 197
Joined: Sun Jul 15, 2007 11:45 pm
Location: Prague

BigInt support for Teradata in DataStage 8

Post by DS_FocusGroup »

Hello everyone,

Has anyone experienced working with BigInt data type with Teradata through DataStage before? Prior to the latest release (v12), Teradata did not support BigInt, but it does now. Does DataStage 8 support BigInt for Teradata? Has anyone tried to load/unload a table with a BigInt column through any of the Teradata Stages in DataStage?

Thanks in advance!
toshea
Participant
Posts: 79
Joined: Thu Aug 14, 2008 6:46 pm

Post by toshea »

Teradata introduced BIGINT in V2R6.2. That data type is supported by the Teradata Connector in Information Server 8.0.1 FP 1.
shershahkhan
Participant
Posts: 64
Joined: Fri Jan 25, 2008 4:41 am

Post by shershahkhan »

Hi,
I try this out but when i try to view the data from view data option on the Teradata Connector stage it doesn't give any error but when i run the job it say BigInt is not suportted.
toshea
Participant
Posts: 79
Joined: Thu Aug 14, 2008 6:46 pm

Post by toshea »

My mistake, support for BIGINT in the Teradata Connector isn't in the base 8.0.1 FP1, but it is available in a patch to FP1. Get the patch for Ecase 125205. There is an 8.0.1 FP1 patch for AIX. If you need a patch for a different platform, you'll need to contact your IBM support to have a patch built.

In addition to installing the patch, you should edit the clispb.dat file which is usually in /usr/lib or /opt/teradata/client/lib. You should add the following line if you want to support DECIMAL(38) which is another new data type that was introduced in V2R6.2 in addition to BIGINT:

max_decimal_returned=38

Without the patch, you should still be able to load into or export from BIGINT columns, but you'll need to set the DataStage column to VarChar(20). When loading, the Teradata server will do the conversion from VarChar to BIGINT. When exporting, you should use the CAST function to convert from BIGINT to VARCHAR, e.g. SELECT CAST(BigIntColumn AS VARCHAR(20)) FROM TableName.
shershahkhan
Participant
Posts: 64
Joined: Fri Jan 25, 2008 4:41 am

Post by shershahkhan »

We have contacted IBM and the patch was for one particular customer and very specific to the envirnoment they have. We still not able to make it work IBM says they don't provide support for BigInt at the moment, they will pass our request to the engineerring dept.
Post Reply