BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
aniketwagare0
Fluorite | Level 6

I am runing following code in OnDeamand Academic Studio,

libname orionx XLSX "/home/aniketwagare0/test/ecprg193/lpar.xls";
libname output "/home/aniketwagare0/test/output";

data output.test1;
set orionx.'lpar$'n;
run;

getting error shown in SAS1.png


SAS1.png
1 ACCEPTED SOLUTION

Accepted Solutions
ChrisNZ
Tourmaline | Level 20

Look at the contents of library orionx instead of looking at the file list.

 

View solution in original post

2 REPLIES 2
ChrisNZ
Tourmaline | Level 20

Look at the contents of library orionx instead of looking at the file list.

 

Reeza
Super User

lpar is your filename. 

In this type of access SAS is expecting the Sheet name. As @ChrisNZ navigate to the Library Pane and see the name there. 

 

As mentioned earlier, this was answered a few days ago, heres' the link:

 

https://communities.sas.com/t5/Base-SAS-Programming/Import-data-from-XLS-in-SAS-OnDemand-for-Academi...

SAS Innovate 2025: Call for Content

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!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 927 views
  • 1 like
  • 3 in conversation