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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.