BookmarkSubscribeRSS Feed
allg
Calcite | Level 5

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!

8 REPLIES 8
Community_Guide
SAS Moderator

Hello @allg,


Your question requires more details before experts can help. Can you revise your question to include more information? 

 

Review this checklist:

  • Specify a meaningful subject line for your topic.  Avoid generic subjects like "need help," "SAS query," or "urgent."
  • When appropriate, provide sample data in text or DATA step format.  See this article for one method you can use.
  • If you're encountering an error in SAS, include the SAS log or a screenshot of the error condition. Use the Photos button to include the image in your message.
    use_buttons.png
  • It also helps to include an example (table or picture) of the result that you're trying to achieve.

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.

 

edit_post.png

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

.
Reeza
Super User

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!


 

 

allg
Calcite | Level 5

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.

 

Reeza
Super User
Try changing DBMS=EXCELCS to DBMS=Excel.

allg
Calcite | Level 5

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;
Reeza
Super User
If this is a one time process, I would save the file as XLSX upload and move on. If not, I would contact SAS Tech Support for advice.
luxiernawa
Calcite | Level 5

The solution that provided before worked for me. 

PGStats
Opal | Level 21

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.

PG

SAS Innovate 2025: Register Now

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!

Mastering the WHERE Clause in PROC SQL

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.

Discussion stats
  • 8 replies
  • 5871 views
  • 3 likes
  • 5 in conversation