Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
How to specify in a LOAD statement, the relative path to an EXCEL file?
Hello Yimen,
One way is doing the following
Directory C:\Level1\Level2; // at the beginning of the script LOAD * FROM ..\..\test.txt; // relative to the Directory set above
Although I always prefer to create variables with paths, then use them in the load statement.
SET vPath = 'c:\Level1\Level2'; LOAD * FROM $(vPath)\test.txt;
Regards.
Hi Yimen,
You just need to check the Relative Path option in the ETL.
Regards,
Raj