DATE_INVALID_VALUE

In an XDBC configuration file, set the DATE_INVALID_VALUE configuration variable to a valid date, as per the format specified by the XFD DATE directive, to be used when translating dates between a DATETIME type and a COBOL data type.

This date is used in the following situations:
  • When translating COBOL data to a DATETIME, if the COBOL data item consists of an invalid date or is set to SPACES, the value for DATA_INVALID_VALUE is used.
  • When translating a DATETIME type to a COBOL data item, if the DATETIME is the same value as DATE_INVALID_VALUE, the COBOL item is set to SPACES.
Note: During translation, any information missing from the date string will default to the lowest possible value.

Example:

With the following variable set:

DATE_INVALID_VALUE       2012011600000000

the following translations occur:

Original item Translated to
COBOL item not set to a valid date according to the DATE XFD directive 2012011600000000
DATETYPE is 2012011600000000 SPACES