decimals

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
rafidwh
Participant
Posts: 179
Joined: Mon Oct 10, 2005 11:30 pm

decimals

Post by rafidwh »

I have a small issue,I have a flat file as source it has an amount column like the scenario is
flat file amt column :14560
database amt column :145.60

so i need to populate the data in the target database like 145.60,i have put /100 to the amt column it populates as 145.6 but i need as 145.60 please help me out
Awaiting for your help
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Oconv(14560, "MR2") or Fmt(14560, "MR2") will do the job for you.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
rafidwh
Participant
Posts: 179
Joined: Mon Oct 10, 2005 11:30 pm

thanx

Post by rafidwh »

so I need to give the function like
oconv(amt column,"MR2")
Is it true so that all the data in that amt coulumn will be in decimals
kcshankar
Charter Member
Charter Member
Posts: 91
Joined: Mon Jan 10, 2005 2:06 am

Post by kcshankar »

Hi Rafi,
To add one more to ray's soln
FMT("flat file amt column/100", "L2").



Regards
kcs
Post Reply