- Since your fields are comma separated, you should include
fields terminated by ","
in your control file. - date1 is not present in the data file, but is computed. So use EXPRESSION parameter to specify that.
- in to_date function, use colons to reference the previous fields.
So, your control file should look like this,
OPTIONS (SKIP=11, errors=12000)
LOAD DATA
APPEND INTO TABLE abc
fields terminated by ","
(
year "trim (:year)",
mon "trim (:mon)",
day "trim (:day)",
date1 EXPRESSION "to_date (:year||:mon||:day,'yyyymmdd')"
)