Internal Formats
Some of the default actions taken by Culprit in the two processing modes are based on the internal format that Culprit uses to store numeric fields. Under Culprit Release 5.0, all user-defined numeric input and work fields and extracted-item and total-bucket values for these fields were stored as 8-byte packed values. Under Culprit Release 6.0 and later, these items are stored as 8-byte or 16-byte packed values, regardless of the release option specified, as follows:
The following table summarizes default actions taken by Culprit under RELEASE=5 and RELEASE=6. These differences are discussed more fully below.
|
Culprit Facility |
Release 5 Default action |
Release 6 Default action |
|---|---|---|
|
Number of decimal positions printed for numeric output fields |
2 |
0 |
|
Treatment of arithmetic and MOVE operation results |
TRUNCATE |
ROUND |
|
Size of intermediate work fields |
8-byte packed decimal unless user-defined fields used in the calculation are stored as more than 8-byte packed decimal |
16-byte packed decimal |
|
Decimal arithmetic overflows |
Overflows truncate the high-order digits; no error message is printed |
Overflows invoke the extended error-handling facility |
|
Report headers |
Headers print anywhere on a report page if a title parameter is not specified |
Headers always print either at the top of a new page, if a title parameter is not specified, or under the title if a title parameter is specified |
Default actions taken by Culprit under RELEASE=5 and RELEASE=6 are explained below.
Decimal Positions
The number of decimal positions in output fields are handled in the following manner:
Under both RELEASE=5 and RELEASE=6, a DP= keyword expression is ignored for output fields that specify format codes FP, FZ, FM, FD, FS, FB, FU, and FW.
Truncation/Rounding
Numeric results generated in Culprit procedure logic are truncated or rounded, as follows:
Work Field Storage
Internal work fields for compound arithmetic operations (that is, arithmetic operations that specify COMPUTE) are handled as follows:
Note: A COMPUTE instruction that includes multiplication by a power of 10 to shift high-order digits from an intermediate work field will produce different results depending on the processing mode in effect.
Decimal Overflow
Decimal arithmetic overflows in computed results are handled as follows:
Note: For more information on the extended error-handling facility, see the CA Culprit for CA IDMS Messages and Codes Guide.
Report Headers
Report headers are handled as follows:
|
Copyright © 2014 CA.
All rights reserved.
|
|