Loading a Varbyte field in teradata

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
rroy2
Participant
Posts: 21
Joined: Thu Jan 03, 2008 4:16 pm

Loading a Varbyte field in teradata

Post by rroy2 »

Hi,

I am using DS 7.5.1a version.

I have a teradata table defined with all fields as VARBYTE(32) as the info to be contained needs to be encrypted.

How can I convert varchar and date datatypes from my XML file to Varbyte(32).

I dont see conversion function for this in datastage. Please help.

Thanks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Is there a 'conversion function' for that in Teradata?
-craig

"You can never have too many knives" -- Logan Nine Fingers
rroy2
Participant
Posts: 21
Joined: Thu Jan 03, 2008 4:16 pm

Post by rroy2 »

I am using custom script in MLoad stage to load the table and also I have to define the fileds in MLoad as Varbinary.

But the moment I define the fields in MLoad stage as varbinary, it changes the datatype in the previous stage also, and that is remove duplicate stage.

And the job fails as its not able to convert String/date to raw. Thus I was looking to change the datatype before I laod the table

Thanks
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Interpose a Transformer stage with appropriate data type conversion function.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

I was wondering if the encryption is done in the mload utility, then the source column should still be of char nature, should it not :roll: :?:
If it is a custom script can't you invoke it outside DS to load the DS made file :?:
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
bobyon
Premium Member
Premium Member
Posts: 200
Joined: Tue Mar 02, 2004 10:25 am
Location: Salisbury, NC

Post by bobyon »

not sure about 7.5 but, because I am looking to do just the opposite in 8.0.1, I just saw a stringtoraw function you could use
Bob
Post Reply