Hello all. I am having a slight problem with the string function. I am trying to use the String funtion in conjunction with the convert function. What I would like to do is left justify a numerical value as a set Char lenght. When I try to use the convert (to Char) function without the str function, I get an exponential value such as 289xE59 or something like that. So I use the STR function.
CONVERT(CHAR(32), STR(QTYUNITSL_S_MTF, 32))
The only problem is that the value's come up right justified. Is there anyway that I can left justify it in a 32 block space of Characters.
The reason I am doing this is to create a flat file with a set width.
Thanks
CONVERT(CHAR(32), STR(QTYUNITSL_S_MTF, 32))
The only problem is that the value's come up right justified. Is there anyway that I can left justify it in a 32 block space of Characters.
The reason I am doing this is to create a flat file with a set width.
Thanks