Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
i need to load data from multiple file placed in multiple paths.how i can acheive this through single FROM statement.
EX:
load * from
thanks in advance..
Hi,
Use multiple CSV file load functionality that may help you here.
Regards,
Anand
If exchange has only 4 folders named ITA, BGD, RUS and ALG then you can try this (I have never done this before and have no idea if this will work or not, but I guess there is not harm in trying )
FROM
Best,
Sunny
Hi ,
i initically tried it .it is givivg The filename, directory name, or volume label syntax is incorrect.
Try like:
FOR Each File in filelist ('D:\Exchange \*.' &'csv')
LOAD
*
Autogenerate 1;
NEXT File
can u pls tell me in detail
Hi,
Try like this with multiple Load statements, if you loading data from only this 4 paths this is the best option
Data:
LOAD
*
FROM
Concatenate(Data)
LOAD
*
FROM
Concatenate(Data)
LOAD
*
FROM
Concatenate(Data)
LOAD
*
FROM
Hope this helps you.
Regards,
Jagan.
Hi,
This post could be of help to you:
Loading data from multiple xls-files from folder with subfolder
Regards,
RK
Hi tresesco,
script is getting executed .but i am not geeting any fields or data.
FOR Each File in filelist ('D:\Exchange \*.' &'csv')
FileList:
LOAD
*
Autogenerate 1;
NEXT File
FOR i=0 to FieldValueCount('FileList')
ODBC CONNECT to [Excel Files;DBQ=$(vPathFile)];
col:
SQLCOLUMNS;
NEXT i;
STORE col into test_col.qvd;