Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Guys, How do you pick up certain

Status
Not open for further replies.

ProDev

Programmer
Jul 9, 2003
51
US
Guys,

How do you pick up certain flat file supplied to you (on daily basis)
for your laoding ? I mean to say that, do you delete the file X after
success full load on the same day so that your session will use the
file X (newly copied) next day ?

Pleas guide me on this.

Thanks
 
You need to specify the name of the file in session properties that need to be loaded into warehouse.
Once the data is loaded into warehouse successfully rename that file to .bal extension or .old. this can be done in post session script. So that it will be easy to differentiate between old and new file. You can also delete the file once the data is loaded so there is no more confusion at all.



-Ajay
 
another way to do is to write a shell script to be executed before session which checks for presence of files & checks the timestamp (in the name of the input file itself).
eg: ur input file(s) for today could be :

input_file_04082003.csv --> actual input file
input_file_04082003.flg --> flag file which indicates whether file is present or not.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top