Hello All,
I am trying to import the attached .xls file, and not all of the observations are being imported. Just the first 65536 observations. I checked, and it is not missing any observations from 1 to 65536. It is importing the columns correctly, and correctly guessing the delimiter, which is a space, in this instance.
I am using the following code:
proc import datafile = '/home/mit/mahler/Abnormal_Weather/Data/StateData.xls' dbms=xls out=dat.StatesFinal replace;
getnames = no;
run;
As you can see, from the attached file, the original data has 96191 observations.
I am sure this is an easy fix, but I can't figure it out.
Thanks,
John
An xls file can only contain up to 65536 records. An xlsx file can contain more.
An xls file can only contain up to 65536 records. An xlsx file can contain more.
That fixed it! Thanks so much!
Just saved it as a .xlsx file and used the following code:
rsubmit;
proc import datafile = '/home/mit/mahler/Abnormal_Weather/Data/StateData.xlsx' dbms=xlsx out=dat.StatesFinal replace;
getnames = no;
run;
Thanks!
Since it looks like you may be using the University edition and I don't I can't test..
XLS would not pay any attention to delimiters as XLS files don't have such if a native Excel file.
If it is delimited text, say so.
I would be tempted to export using Excel or other spreadsheet program to a CSV and import that.
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.