help on PROC IMPORT

From sasCommunity

Jump to: navigation, search
sasCommunity Forum : sasCommunity - general site feedback : help on PROC IMPORT

By Tgreasby on Wed Dec 05, 2007 5:02 pm

Hi,

I have the unfortunate task of figuring out someone else's SAS code. I usually use R. Below is the command I have been using.


proc import datafile ='filename.csv'

   out = careqol replace;
   getnames = yes; 
 run;

And this is the error message I get:

Unable to sample external file-no records exist in the first 5 records


The file is not empty. I can read it into R just fine. I can read it into sas using the infile command just fine.

Any ideas?


Private Message | Personal Page | Quote


By NancyWilson on Mon Dec 17, 2007 5:53 pm

Does the filename.csv file have as the first row the column names?


Private Message | Personal Page | Quote


Showing page 1/1


Forum section Powered by MWBB
Views
Personal tools