Using SUBSTR?
oracle@mutation#cat d.ctl
LOAD DATA
infile 'd.data'
truncate INTO TABLE d
FIELDS TERMINATED BY "," optionally enclosed by '"' TRAILING NULLCOLS
(
c1 "substr(:c1,1,4)"
)
oracle@mutation#cat d.data
ACCOUNTING
RESEARCH
CHI@CAGO
OPERATIONS
oracle@mutation#sqlldr userid=scott/tiger control=d.ctl
SQL*Loader: Release 9.2.0.7.0 - Production on Wed Dec 20 13:27:06 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Commit point reached - logical record count 4
oracle@mutation#query mutation scott.d
C1
----------------------------------------------------------------------------------------------------
ACCO
RESE
CHI@
OPER