Sunday, 11 August 2013

COBOL ARITH Compiler Option.

The ARITH compiler option allows you to control the maximum number of digits allowed for decimal numbers (packed decimal, zoned decimal, and numeric-edited data items and numeric literals).
With  ARITH(EXTEND), the maximum number of digits is 31; with ARITH(COMPAT), the maximum number  of digits is 18.
However, ARITH(EXTEND) will cause some degradation in performance for all decimal  data types due to larger intermediate results. The amount of degradation that you experience depends directly  on the amount of decimal data that you use.
Performance considerations using ARITH:  
On the average, ARITH(EXTEND) was 1% slower than ARITH(COMPAT), with a range of equivalent to 38% slower.

Created with Artisteer

No comments:

Post a Comment