Fmt function for decimal data type

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
monaz
Participant
Posts: 98
Joined: Sat Aug 23, 2008 3:14 am

Fmt function for decimal data type

Post by monaz »

Hi all,

I have an problem with FMT function. I have requirement where i have to do RIGHT ALIGN Space fill for decimal field.


eg:- Quantity- decimal(17,4) is the input given

OutPut:- < 645.0000>


So to do right align space fill i wrote the below derivation for quantity filed as

FMT(Quantity, "17' 'R").

But the does not works out its failng.

Please correct me if anything is missing
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The FMT(x,"17' 'R") statement will do what you stated you want done. Could you post your source data and the failed result of the format so that we could understand what didn't work?
Post Reply