There is a requirement of converting a packed decimal to readable format to write to an output file.
The input variable is in format as follows.
01 ws-inp-amt pic s9(12)v9(2) comp -3.
So the corresponding output variable declaration is as follows
01 ws-out-amt pic +z(12)9.99.
If the input value is +1234.99, the output coming now is
There is a space appearing between the sign and the value.But the desired result is that the sign should come immediately
before the value +1234.99. How to remove the spaces appearing between the sign and the value
without modifying the variable length?