Server to parallel

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
fmartinsferreira
Participant
Posts: 142
Joined: Wed Mar 24, 2004 10:51 am
Location: Brazil

Server to parallel

Post by fmartinsferreira »

Hi!
I'm transforming a Server job to Parallel Job and I have the following command Oconv(Trim(LINK_004.OTHER_AMT),'MD2') that work in a transformer stage and it doesn't work in a parallel job.

I saw that there is a function -> StringtoDecimal(String,Rtype) but the help that I have is very poor.

Can anybody help me?

Additional info -> the input is a string like 112.12 and I need the following output 112.

Regards,

Fernando
us1aslam1us
Charter Member
Charter Member
Posts: 822
Joined: Sat Sep 17, 2005 5:25 pm
Location: USA

Re: Server to parallel

Post by us1aslam1us »

fmartinsferreira wrote:Hi!
Additional info -> the input is a string like 112.12 and I need the following output 112.
Try "floor" from the transform functions and that will work for you.

Thanks
Sam
fmartinsferreira
Participant
Posts: 142
Joined: Wed Mar 24, 2004 10:51 am
Location: Brazil

Re: Server to parallel

Post by fmartinsferreira »

Sorry but I don't understand "floor"

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

Post by ray.wurlod »

You can select floor() from the expression editor in the parallel Transformer stage. It's the parallel equivalent of the server Int() function, returning the largest integer smaller than its argument.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
fmartinsferreira
Participant
Posts: 142
Joined: Wed Mar 24, 2004 10:51 am
Location: Brazil

Post by fmartinsferreira »

Thank you!

Work very well!

Regards,

Fernando
Post Reply