Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi!
I'm trying to load data from monthly csv files (with naming DATA_202201, DATA_202202 etc.) and I'm trying to load data from last year's January onwards. I've written the below code, but it doesn't work - I manage to generate the AR_Dates table correctly, but reading the csv files doesn't work. I get an error message that the csv file can't be opened.
Everything looks Ok just review your file path in the FROM clause.
Create a variable like below to concatenate the file path and the file name properly.
LET vFilePath = 'lib://DATA_' & vFileDateAR & '.csv';
LOAD * FROM [$(vFilePath)] (txt, utf8, embedded labels, delimiter is ',', msq);
NEXT i;
3 more things to check in these cases 1. file path, 2. file permissions, 3. file existence
Everything looks Ok just review your file path in the FROM clause.
Create a variable like below to concatenate the file path and the file name properly.
LET vFilePath = 'lib://DATA_' & vFileDateAR & '.csv';
LOAD * FROM [$(vFilePath)] (txt, utf8, embedded labels, delimiter is ',', msq);
NEXT i;
3 more things to check in these cases 1. file path, 2. file permissions, 3. file existence