source target mapping

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
vikramkola
Premium Member
Premium Member
Posts: 15
Joined: Sun Feb 22, 2009 3:31 pm

source target mapping

Post by vikramkola »

Hi ,

Source coloums in sequential file : A,B,C
Target coloums in table in oracle database:A,B,C,D,E

How to load this source file in to target table,
the coloums D,E in target table should be empty after loading.
vikram
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Simply don't include D and E in your target stage. Either that or specifically map NULL to them.
Last edited by chulett on Thu Oct 21, 2010 1:58 pm, edited 1 time in total.
-craig

"You can never have too many knives" -- Logan Nine Fingers
naveen.p
Participant
Posts: 55
Joined: Sat Nov 21, 2009 5:19 am
Location: Chennai

Post by naveen.p »

Hi,

Create Two Columns and use SetNull() Function.
HariK
Participant
Posts: 68
Joined: Thu May 17, 2007 1:50 am

Re: source target mapping

Post by HariK »

If the fields have not null contraints you can load an empty string by using '' in the derivation for the fields.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Not for Oracle. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
HariK
Participant
Posts: 68
Joined: Thu May 17, 2007 1:50 am

Post by HariK »

chulett wrote:Not for Oracle. :wink:
Thanks Craig for correcting.
vikramkola
Premium Member
Premium Member
Posts: 15
Joined: Sun Feb 22, 2009 3:31 pm

Post by vikramkola »

Thank's to all of you.
vikram
Post Reply