how can i call a function on an insert statement

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
ep_datastage
Participant
Posts: 24
Joined: Wed Apr 16, 2014 11:11 am
Location: United States

how can i call a function on an insert statement

Post by ep_datastage »

Hi,

I am extracting data from one DB source and inserting it into another. On the insert I need to call a function to encrypt one of the fields being inserted. How do I do that in Data Stage.

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

Post by chulett »

Use your own 'user defined' SQL to do that insert, modeled after what the stage is currently using, but with the function call you need added.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ep_datastage
Participant
Posts: 24
Joined: Wed Apr 16, 2014 11:11 am
Location: United States

Post by ep_datastage »

I tried that, but the insert didn't execute the function
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Done properly, there's no way that it can't "execute the function". How about some details, please. What database, target stage, actual SQL used, options in the stage, messages in the log - anything that can help us help you.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply