Hi,
I'm totally fresh at SAS and I'm using SAS onDemand for Academics.
I need to import xls from my computer and I don't know how to do this. Is it possible?
When I'm trying to use "Import Data" and drag and drop the file I got "Only SAS programs can be dragged all from the client file system.".
Could you please help me? How can I add the files from my computer?
Thanks!
Hello @allg,
Your question requires more details before experts can help. Can you revise your question to include more information?
Review this checklist:
To edit your original message, select the "blue gear" icon at the top of the message and select Edit Message. From there you can adjust the title and add more details to the body of the message. Or, simply reply to this message with any additional information you can supply.
SAS experts are eager to help -- help them by providing as much detail as you can.
This prewritten response was triggered for you by fellow SAS Support Communities member @PGStats
.SAS running in the cloud cannot see your computer or your files, you need to first upload them. See the instructions below.
Go to the Servers Files and Folders tab.
Navigate to the folder you'd like to save the files.
Click the fourth icon in the Servers Files and Folders tab, it looks like an up arrow.
This will upload your file to the server.
Note that there is a limit to the size of files that can be uploaded, I believe it's 10 or 50MB.
If this does not work, please explain what you tried and show a screenshots.
@allg wrote:
Hi,
I'm totally fresh at SAS and I'm using SAS onDemand for Academics.
I need to import xls from my computer and I don't know how to do this. Is it possible?
When I'm trying to use "Import Data" and drag and drop the file I got "Only SAS programs can be dragged all from the client file system.".
Could you please help me? How can I add the files from my computer?
Thanks!
Thanks, I made the upload.The location now is /home/u37546273/Powiaty and the name is Powiaty.xls
But there is still an error. My code below
%let path=/home/u37546273/Powiaty;
%put &path;
libname pow "&path";
proc import datafile="&path/Powiaty.xls"
dbms=excelcs replace out=pow.powiaty;
range="Arkusz1$";
run;
I still have an error: ERROR: Server Name is invalid or missing.
Now I got: ERROR: DBMS type EXCEL not valid for import
Is there any way to preview data I've loaded?
%let path=/home/u37546273/Powiaty;
%put &path;
libname pow "&path";
proc import datafile="&path/Powiaty.xls"
dbms=Excel replace out=pow.powiaty;
range="Arkusz1$";
run;
The solution that provided before worked for me.
Use the download button from the server files and folders pane in SODA. Then you can import your data into SAS from the xls file on the server.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.