Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I have setup control file to load data from sqlldr to oracle table.
My filename is not static for example
ISURE_Transaction_Data_20191231

it comes like this on daily basis with date change.
So when i execute control file through scheduler it should take dynamic date.

Suppose if any new file comes like
ISURE_Transaction_Data_20200101

it will fail.

How can i achieve this?Any help would be greatly appreciated.

What I have tried:

OPTIONS(skip=1)
LOAD DATA
INFILE 'D:\code\ISURE_Transaction_Data_20191231.txt'
APPEND
INTO TABLE isure_temp
fields terminated by '|'
TRAILING NULLCOLS
(
CUSTCODE ,
URN_NO ,
TRANSACTION_AMT,
IBANK_TRNX_ID ,
INSTR_TYPE ,
ISURE_PAY_REF_NO ,
FILED_1 ,
FILED_2 ,
FILED_3 ,
FILED_4,
FILED_5,
FILED_6 ,
FILED_7 ,
FILED_8 Date "DD-MM-YYYY",
FILED_9,
FILED_10,
FILED_11,
FILED_12,
FILED_13,
FILED_14,
FILED_15,
FILED_16,
FILED_17,
FILED_18,
FILED_19
)
Posted
Updated 10-Mar-20 19:49pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900