SPZERO (deprecated)

Causes space characters in numeric data items of USAGE DISPLAY to be treated as zeros.
Note:
  • SPZERO is deprecated, and provided for backward compatibility only; use SIGN-FIXUP instead.
  • This directive can adversely affect the performance of generated code.

Syntax:

>>-.---.-.----.--SPZERO--------------------><
   +-/-+ +-NO-+

Parameters:

None

Properties:

Default: NOSPZERO
Phase: Both
$SET: Any

Comments:

With NOSPZERO, space characters in numeric data items give unpredictable results.

For JVM COBOL, SPZERO combined with either HOST-NUMMOVE or HOST-NUMCOMPARE is an invalid combination of directives, and is rejected during compilation. For native COBOL, the combination is permitted.