Link to home
Start Free TrialLog in
Avatar of sunilbains
sunilbains

asked on

SQL*Loader-350: Syntax error at line 11.

Am getting following error, Please advise-

SQL*Loader-350: Syntax error at line 11.
Illegal combination of non-alphanumeric characters
,  P_BATCH_ID          CONSTANT <<BATCH_ID>>
                                                        ^

Below is the control file , which works fine without PV_BATCH_ID column. The <<BATCH_ID>> is used to get subsituted value($batchID) from shell script
parameter which is as follows in shell script- sed -e "s%<<BATCH_ID>>%$batchID%g" $CTL_TEMPLATE > $CTL_WORK

Below is the Ctrl File-

LOAD DATA
append
INTO  TABLE Emp
FIELDS TERMINATED  by  "|"
TRAILING NULLCOLS
(
  EmpID                         EXPRESSION "seq_id.nextval"
, DATE_ENTERED         EXPRESSION "sysdate"
, CD                             CONSTANT 'N'
, CD1                           CONSTANT 'New'
, P_BATCH_ID             CONSTANT <<BATCH_ID>>
----
, Id                   char                                "rtrim(:Id                  )"
, Name                 char                            "rtrim(:Name            )"
)
Avatar of Lee Wadwell
Lee Wadwell
Flag of Australia image

Hi sunilbains,

if SQL*Loader is complaining about the "<>" value ... the substitution is not working (but the sed statement looks fine to me) or the wrong CTL file is being executed or something like that.

lwadwell
ASKER CERTIFIED SOLUTION
Avatar of raju1105
raju1105
Flag of Qatar image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sunilbains
sunilbains

ASKER

Thanks