round function

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
jani
Participant
Posts: 8
Joined: Tue Aug 26, 2008 1:24 am

round function

Post by jani »

Hi,
I want to implement round function in my job.i.e rounding decimals to integer values.EX:round(3.5)=4 ,round(3.2)=3,round(3.6)=4

I am using datstage 7.5 serverjobs.

Please let me know the logic to implement this function in datastage job.
I want to use this function in stagevariable.
aj
svga
Participant
Posts: 73
Joined: Thu Aug 07, 2008 6:31 am
Location: Syracuse

Post by svga »

use Fix function
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Welcome. :D

I typically use the FMT() function for this, but there are probably other ways as well.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply