Using a filename as a parameter with sqlloader [message #69689] |
Mon, 18 February 2002 06:44 |
kim
Messages: 116 Registered: December 2001
|
Senior Member |
|
|
Hi,
I hope someone can help me.
I need to batch process a number of files coming from different companies. The files are the same, but the company id is in the file name. I want to use this as a value in my control file. I can use a Unix script to extract the id from the file name, but I then want to use this in my control file as I want to know who supplied the data. So for example:
The filename is 123_file.dat
the control file is:
load data
into table MY_TABLE
(
company, --value extracted from incoming file name
data1,
data2,
...
)
Any ideas?
Thanks in advance
Kim
|
|
|
|