Ab Initio - Formatting a number in Left alignment

Posted by Veera on Stack Overflow See other posts from Stack Overflow or by Veera
Published on 2010-04-26T08:59:49Z Indexed on 2010/04/26 9:03 UTC
Read the original article Hit count: 334

Filed under:
|

I have a requirement in Ab Initio to format a number in left alignment. I shouldn't be using String conversion (as Strings are left aligned by default), as it might cause compatibility problems in the other end.

For example, if my Field has 7 bytes length, and I'm getting only two digits as my input, then these two digits should go into the first two bytes of my field (left aligned), instead of the last two bytes.

So, is there any in-built function in Ab Initio, that can format a number as left aligned?

© Stack Overflow or respective owner

Related posts about abinitio

Related posts about numberformat