As you can see, I need to do a fixed position definition. My table definition is below. What I try and select from the table, I get this error:
KUP-04101: record 97 rejected in file /u01/NI00/prod/data/indata/ external_tables/W_GIDE.DAT KUP-04021: field formatting error for field F2_EPS_EST KUP-04024: field end is before field start
I do not understand this at all. There are some NULLS or Spaces within the values. That is why I am using fixed format. Here is my table definition. Can anyone offer some help?
The end parameter indicates the absolute byte or character offset into the record for the last byte of the field. If start is specified along with end, then end cannot be less than start. If * or increment is specified along with end, and the start evaluates to an offset larger than the end for a particular record, then that record will be rejected. </quote>
> As you can see, I need to do a fixed position definition. My table > definition is below. What I try and select from the table, I get > this error:
> KUP-04101: record 97 rejected in file /u01/NI00/prod/data/indata/ > external_tables/W_GIDE.DAT > KUP-04021: field formatting error for field F2_EPS_EST > KUP-04024: field end is before field start
> I do not understand this at all. There are some NULLS or Spaces > within the values. That is why I am using fixed format. Here is my > table definition. Can anyone offer some help?
This isn't, apparently, a 'problem' with external tables, it's a problem with you knowing your data and it's layout in your source file. I'd be checking each line for length and for data positioning; line 97 (for one) doesn't meet your fixed-length record criteria as it's too short.