Hello everyone,
I am trying to import a sheet from an excel file. However, it gave me this error message.
Here is what I did:
------------------------------------------
libname SAStry cvp "/folders/myfolders/Jobs";
proc import datafile='/folders/myfolders/Jobs/AE.xls'
out=SAStry.allsae dbms=xls;
sheet="sae";
run;
------------------------------------------
Log file:
Basically, your computer does not have enough memory to perform this task.
You can try rebooting your computer and making sure that the only application running is SAS.
But the long term fix is most likely that you need more memory in your computer AND a 64-bit operating system.
Thank you for the quick reply, PaigeMiller.
I will try the reboot and see how it will turn out. My OS is windows 10 X 64 bits by the way.
Do you use Enterprise Guide or Regular SAS?
This article ( http://support.sas.com/kb/31/715.html ), though slightly dated, states that in the absence of a hotfix, "DBMS=EXCEL" should be used instead of "DBMS=XLS".
Also, are you using "OPTIONS COMPRESS=YES;"? This option is absolutely critical when you have a significant number of character variables that vary in length.
Permutations of DBMS options (EXCEL/XLS/XLSX) and file formats (.xls, .xlsx, .xml) might be worth a shot (or you can come up with your own):
Some of the above pairs may not make sense, so my suggestions should be taken with a grain of salt.
-- hbi
Hello Hbi,
Thank you for replying my post.
I am using SAS university Edition and my OS is windows 10x64bits.
And i did try DBMS=excel and it gave me "Error: DBMS type excel not valid for import".
-Lei
Try adding this statement to your code to find out how much memory SAS is using:
options fullstimer;
And post the result of
proc options group=memory;run;
and of
%put Free RAM = %sysfunc(putn(%sysfunc(getoption(xmrlmem))/1024**2,comma10.))MB;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.