Oracle Load Characteristic

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
gsym
Charter Member
Charter Member
Posts: 118
Joined: Thu Feb 02, 2006 3:05 pm

Oracle Load Characteristic

Post by gsym »

Hey,

I am using LOAD option in oracle enterprise stage. When i load onto the VARCHAR Field, the data is getting loaded with spaces.

Example

Assume the job as follows

Oracle -----> Transformer------->Oracle

In transformer i am defaulting a value 'SM' for column "Code" of datatype Varchar (5). when i load the data, its getting loaded as 'SM '

is there any env variable to solve this issuse or any workaround?
Last edited by gsym on Mon Feb 23, 2009 8:19 pm, edited 1 time in total.
changming
Participant
Posts: 68
Joined: Wed Oct 13, 2004 3:35 am

Re: Oracle Load Characteristic

Post by changming »

gsym wrote:Hey,

I am using LOAD option in oracle enterprise stage. When i load onto the VARCHAR Field, the data is getting loaded with spaces.

Example

Assume the job as follows

Oracle -----> Transformer------->Oracle

In transformer i am defaulting a value "SM" for column "Code" of datatype Varchar (5). when i load the data, its getting loaded as 'SA '

is there any env variable to solve this issuse or any workaround?
Do you mean Datastage turned 'SM' to 'SA ' ?
that is more seriously.
gsym
Charter Member
Charter Member
Posts: 118
Joined: Thu Feb 02, 2006 3:05 pm

OOPS, sorry....Changed it now

Post by gsym »

That was a typo.
Post Reply