Errors When Transferring Data from DIF Files

When you transfer data from a workstation DIF file to a system file with data definitions, the following errors can occur:
  • Data in this workstation file is not valid, or the version of this workstation file is not supported. The DIF file does not follow the standard DIF format. Processing ends, and no more records are transferred.
  • Data in this field is too long for the iSeries, eServer™ i5, or System i5® field. The data is truncated. The workstation file-description file defines character or numeric data as longer than the field length specified for the system file.

    For character data, this error occurs only if the extra bytes are not spaces. For hexadecimal data, this error occurs only if the extra bytes are not zeros. The extra bytes are truncated so that the data fits into the specified iSeries, eServer i5, or System i5 field.

  • The value of numeric data is too large for the system field. The maximum value is used. This error occurs when:
    • Numeric data in the workstation field does not fit into the specified number of bytes for the iSeries, eServer i5, or System i5 field.
    • The decimal value of a numeric field contains more digits than are specified for the system field.

    The value of the field is set to the maximum value possible for the number of bytes and digits the system specifies.

  • Data in this field has too many decimal positions. The number is rounded. The number of decimal positions in the workstation field is greater than the number of decimal positions specified on the system. The data is rounded up if the first extraneous digit is 5 or greater, and is rounded down if it is less than 5.
  • Data in this field is incorrect or does not match the workstation data type. One of the following things has occurred:
    • A numeric field contains nonnumeric data.
    • A character or hexadecimal field contains a numeric field or a numeric (zoned, packed, or binary) field contains a character field.
    • An iSeries, eServer i5, or System i5 hexadecimal or numeric (zoned, packed, or binary) field contains a DIF error cell.

    When this error occurs, the transfer request ends to prevent the transfer of incorrect data to the system file.

  • Data for this field is missing. This occurs when a data field is defined, but the data is not in the file. This means that the end of the record is reached before all of the defined data is found. If the host field is null-capable then a null is inserted; otherwise, the default values are used.

    When this error occurs, the field or fields for which data is defined, but not found, are filled with default values and are transferred to the system file. These default values are EBCDIC spaces for character fields, or zeros for numeric fields.

    To supply your own default values, use the Default (DFT) keyword in the DDS for the file.

  • Data in this field exceeds the field size. The data is lost. This error occurs when extra data, not defined by the file-description file, is found at the end of a character field. The extra bytes are truncated and are not transferred to the system file.
  • Extra data is found at the end of this record. The extra data is not transferred. This error occurs when there is extra data at the end of the record, and the iSeries, eServer i5, or System i5 data definitions or file-description file have not defined it. This extra data is not transferred to the system, because no definitions exist to define the data and how it should change.