Errors When Transferring Data from BASIC Sequential Files

When you transfer data from a BASIC sequential file to a iSeries-, eServer™ i5-, or System i5®-defined file, the following errors can occur:
  • Data in this field is too long for the iSeries, eServer i5, or System i5 field. The data is truncated. The file-description file defines character data as longer than the field length specified for the file.

    If the data transfers to an EBCDIC field, this error occurs only if the extra bytes are not spaces. If the data transfers to a hexadecimal field, this error occurs only if the extra bytes are not zeros. These 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 system field.
    • The decimal value of a numeric field contains more digits than were specified for the system field.

    The value of the field is set to the maximum value possible for the number of bytes and digits specified by the iSeries, eServer i5, or System i5.

  • Data in this field has too many decimal positions. The number is rounded. This error occurs when the number of decimal positions in the workstation field is greater than the number of decimal positions specified on the system. The extra bytes are significant, because 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. This error occurs when a field defined as numeric by the file description contains nonnumeric data. This could also result if a character or hexadecimal field contains a numeric field, or if a numeric (zoned, packed, or binary) field contains a character field.

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

  • Data for this field is missing. The default values are used. This error 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.

    When this error occurs, the field or fields for which data has been defined, but not found, are filled with default values and transferred to the iSeries, eServer i5, or System i5 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 workstation 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 found at the end of the record. The extra data is not transferred. This error occurs when extra data is found at the end of the record, and has not been defined by the system data definitions or workstation file-description file. This extra data is not transferred to the system, because no definitions exist to define the data and describe how it should change.