Issue with loading data into Flatfile

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
srini.dw
Premium Member
Premium Member
Posts: 186
Joined: Fri Aug 18, 2006 1:59 am
Location: Chennai

Issue with loading data into Flatfile

Post by srini.dw »

I am loading data from Dataset to Flatfile.
I need convert data Decimal(17,2) as Decimal(8,2) .

Sample Data 000000000002210.00
Result
002210.00

For getting above result i have to do....

If it's integer data i am doing like this

Str("0",6-Len(Trim(Move_EmplData.SAL))):Move_EmplData.SAL
Sample Integer Data 000000017000
Result
017000

Thanks
Srini
Last edited by srini.dw on Fri Jul 06, 2007 9:26 am, edited 1 time in total.
mandyli
Premium Member
Premium Member
Posts: 898
Joined: Wed May 26, 2004 10:45 pm
Location: Chicago

Post by mandyli »

OK Srini,

You didn't mentioned your issue.


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

Post by us1aslam1us »

Use decimal_to_decimal function in the modify stage or try decimaltodecimal() in the transformer stage with proper floor value. These functions can be found in the manual.
I haven't failed, I've found 10,000 ways that don't work.
Thomas Alva Edison(1847-1931)
Post Reply