datastage PX

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
karrisuresh
Participant
Posts: 57
Joined: Sat Jun 09, 2007 1:14 am
Location: chicago

datastage PX

Post by karrisuresh »

HI I have a column say Employee_age,
I need to round it 2 decimal places
could any pls let me know the exact syntax
I can give a hint for better understanding

NVL(round(sum(Employee_age),2),0.00)

I can do all except the round function in the above one

thanks in advance
Hi I have experience in parallel extender datastage I am ready to give/take help from other
hope we all help each other hand in hand
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Try floor() for rounding down. Explore all the Transformer stage functions in Appendix A of Parallel Job Developer's Guide manual.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
karrisuresh
Participant
Posts: 57
Joined: Sat Jun 09, 2007 1:14 am
Location: chicago

round off

Post by karrisuresh »

Floor is used to get the previous integer value
I want the value after deciaml to be rounded to 2 places
Hi I have experience in parallel extender datastage I am ready to give/take help from other
hope we all help each other hand in hand
gateleys
Premium Member
Premium Member
Posts: 992
Joined: Mon Aug 08, 2005 5:08 pm
Location: USA

Re: datastage PX

Post by gateleys »

Code: Select all

Fix(YourValue,2)
gateleys
dspxlearn
Premium Member
Premium Member
Posts: 291
Joined: Sat Sep 10, 2005 1:26 am

Post by dspxlearn »

While pulling your field, set the target decimal place to 2. Datastage by default rounds a value if the target decimal length is less than the source.

Code: Select all

Decimal(20,6) --> while pasing to the target set the length to Decimal(20,2)
Thanks and Regards!!
dspxlearn
Post Reply