Problem:
A program uses the SPZERO compiler directive.
The directive causes space characters in numeric data items to be treated as zeroes.
While performing the STRING operation on a string and a numeric data item and displaying the result, outputs spaces rather than zeroes for the numeric data item.
Resolution:
The SPZERO directive treats spaces or undefined numeric data items as zeroes, 'internally'.
This allows the data item to be used in IF statements, MOVEs and calculations. Perform a literal move to the data item to be able to STRING and DISPLAY the zeroes.
MOVE zeroes TO ws-num.
DISPLAY ws-num.