Greetings,
I have 6 csv files containing 14 columns that I'm combining into one sas dataset.
If I do files 1-5, all 14 columns are picked up. If I do all 6, I get the following message: "Number of names found is greater than number of variables found." My resulting dataset only contains 13 columns. The last column is dropped.
I've isolated the problem to the 6th file but cannot figure out what this message means. All 6 files have 14 columns and they are all spelled the same. I've searched this site but haven't found anything that details the message.
This is my code
PROC IMPORT OUT= testcsv.csvtest
DATAFILE= "E:\folder1\csv_1.csv"
DATAFILE= "E:\folder1\csv_2.csv"
DATAFILE= "E:\folder1\csv_3.csv"
DATAFILE= "E:\folder1\csv_4.csv"
DATAFILE= "E:\folder1\csv_5.csv"
DATAFILE= "E:\folder1\csv_6.csv"
DBMS=CSV REPLACE;
GETNAMES=YES;
DATAROW=2;
RUN;
Thanks for looking.