BookmarkSubscribeRSS Feed
Noleen0
Calcite | Level 5

Hello. I am new to using SAS in this way. I have watched the video for the university version. SAS on demand (SAS studio) does not have the file-import option. I am trying to use the snippets. This gives me a few lines of code. I am battling with the syntax for the code, specifically the path for the import statement and the specs for the out statement. I have created a folder on the left panel. I have also created a shared folder on my laptop. I was discussing this online with support, but cannot even find that chat box now.

 

Here is a sample of my latest:

 
71 /** Import an XLSX file. **/
72
73 PROC IMPORT DATAFILE="/folders/home/noleenwork0/mydata/Edwinsas.xlsx"
74 OUT=mydata.edwinsas
75 DBMS=XLSX
76 REPLACE;
77 RUN;
 
ERROR: Physical file does not exist, /pbr/biconfig/940/Lev1/SASApp//folders/home/noleenwork0/mydata//Edwinsas.
NOTE: The SAS System stopped processing this step because of errors.

 

I have called my data file mydata and have also called the library mydata. My student's spreadsheet is Edwinsas. This particular run was done with (here) and without the /folders at the beginning

 

Thanks!

 

2 REPLIES 2
Kurt_Bremser
Super User

Please re-post the log, using the {i} button. I suspect you have a hidden character in your DATAFILE string that prevents the path from being recognized as absolute.

Also include the log of the libname statement you use for library mydata.

Noleen0
Calcite | Level 5
Thank you. I came right with the help chat eventually, and a lot of
fidgeting! Something may well have been hidden because I reloaded and reran
everything.

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore Now →
Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1364 views
  • 0 likes
  • 2 in conversation