Percentage in Transformer

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
travissolt
Participant
Posts: 51
Joined: Mon Feb 05, 2007 1:53 pm

Percentage in Transformer

Post by travissolt »

I am trying to do a simple division step in the transformer but the result is zero for anything that is not a whole number. The output field is set to handle decimal (10,2). For testing purposes I had it try simple stuff like 31/31 and it gave me 1
10/2 and it gave me 5
100/50 it gave me 2.

Any other fraction failed 1/2,5/7 etc.... Its too simple not to be able to done in this step so I must be missing something. Thanks
travissolt
Participant
Posts: 51
Joined: Mon Feb 05, 2007 1:53 pm

Post by travissolt »

Finally figured it out use ASFLOAT(1)/ASFLAOT(2) to get .5.
Post Reply