ENABLE Reference Manual
ENABLE ATTRIBUTES
CHECKDATA Attribute
CHECKDATA Attribute
The CHECKDATA attribute indicates whether the application does,
or does not, contain special code that verifies the data type of
data read from numeric fields in a data base file. The syntax of
the CHECKDATA attribute is:
-----------------------------------------------------------------
| |
| CHECKDATA { ON } |
| { OFF } |
| |
| ON |
| |
| indicates that the portion of the SCREEN COBOL requester |
| program that applies to the box checks the contents of |
| numeric fields. |
| |
| OFF |
| |
| indicates that the portion of the SCREEN COBOL requester |
| program that applies to the box does not check the |
| contents of numeric fields. |
| |
| The starting value of the CHECKDATA attribute is ON. |
| |
-----------------------------------------------------------------
Considerations
When CHECKDATA is ON and the application reads invalid numeric
data (a non-numeric value in a numeric field) from a data base
file, the application issues a warning message. It then replaces
the invalid data with zeros for display purposes only. The
application does not change the actual data in the data base file
unless you request an UPDATE operation.
If CHECKDATA is OFF and the application reads invalid data from
a numeric field, the terminal will abort when the application
tries to display the invalid data.
4-11