Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I am getting following Syntax error while fetching data by using For Loop.
My Syntax:
For Each vfilename in filelist ('Desktop\QV E books\Data\chk\*.csv')
Load *,
'$(vfilename)' As Filename
From[$(vfilename)];
Next vfilename
Plz find my error screen shot as attachment
-Jay
Hi Jay,
How about this script
Load
*,
FileName() As FileNames
From
Regards,
Sokkorn
This error points to the load you are using not the loop
Hi Dude,
Thank you for your reply. Your solution should work.But I need to test by using For...Next.
Thanks,
-Jay
Hi Sujeet,
Can you little bit more clear?What/Where I am missing
-Jay
Hi,
Try this
For each vFileName in Filelist ('C:\Path\*.txt')
Load *,
'$(vFileName)' as FileName
From [$(vFileName)];
Next vFileName
I think you have not give space after From in Load statement.
Regards,
Jagan.