Fixed width file
Posted: Tue Mar 15, 2011 9:41 pm
Hi All,
My target is a file which contains amount columns of 22 width. 16 for integer part, 1 for decimal point, 4 for decimal digit. 1 for sign.
for example : 0000000000000000.0000, if we have -ve sign it should be -0000000000000000.0000.
My question is if it is a +ve number it should have leading space but I'm getting trailed space.
how to achieve a leading space if it is a +ve number.
Thanks in advance
My target is a file which contains amount columns of 22 width. 16 for integer part, 1 for decimal point, 4 for decimal digit. 1 for sign.
for example : 0000000000000000.0000, if we have -ve sign it should be -0000000000000000.0000.
My question is if it is a +ve number it should have leading space but I'm getting trailed space.
how to achieve a leading space if it is a +ve number.
Thanks in advance