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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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
  • 793 views
  • 1 like
  • 3 in conversation