ContentsIndexPreviousNext

5.1 Illegal COBOL Data

This chapter lists which COBOL data items are considered invalid, and explains what happens to them when they are stored in the database.

We also explain which database items are considered invalid, and explain how these are translated to COBOL.

COBOL data (except key data) that is illegal by database standards is stored in the database as null unless you specifically override this default. (Use the configuration variable 4GL-ILLEGAL-DATA to override.)

The following COBOL data usages are considered illegal by the database:

4gl90003.gif In USAGE DISPLAY numbers, LOW-VALUES , HIGH-VALUES, and SPACES are all illegal.

4gl90003.gif In COMP-2 numbers, HIGH-VALUES, and SPACES are illegal.

4gl90003.gif In COMP-3 numbers, HIGH-VALUES is illegal.

4gl90003.gif All other numeric types fit one of the preceding cases (depending on their internal storage format).

4gl90003.gif In DATE fields, the value zero is illegal, as are any other illegal conditions as defined by the date's USAGE type(see above).

4gl90003.gif In text fields, LOW-VALUES is illegal.

4gl90003.gif BINARY numbers are always legal, and all values are legal in BINARY text fields.

More:

5.1.1 Invalid Key Data

5.1.2 Invalid Data Other than Keys