BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
HishamSharrouf
Calcite | Level 5
options validvarname=v7;
libname np xlsx "C:\Users\HP\Desktop\SASUniversityEdition\myfolders\EPG194\data\np_info.xlsx";

 should be there are three tables in the NP library: ParksSpecies, and Visits  ,

but there nothing.

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
Diamond | Level 26

Hi:

  If you are using SAS University Edition, then you should NOT be using a C: drive location to read the np_info.xlsx file.

 

  We always recommend finding the file in the server files and folders pane in SAS Studio and then doing a right-mouse click and choosing Properties. In the Properties window, you should see the location of the file for the LIBNAME statement. It should be something like this:

libname np xlsx "/folders/myfolders/EPG194/data/np_info.xlsx";

 

Note how there is NOT a Windows path or Windows slashes in the above path. This is the path to the NP_INFO.XLSX workbook on my University Edition installation.

 

Then you can use PROC CONTENTS to see the structure of what's inside the Workbook:


proc contents data=np._all_ nods;
run;

 

When I run this code, I see the 3 tables that you listed.

 

Cynthia

View solution in original post

4 REPLIES 4
Tom
Super User Tom
Super User

Show the log. Is SAS really running on a Windows machine?  Is it the same machine that has that file on the C: drive?

Cynthia_sas
Diamond | Level 26

Hi:

  If you are using SAS University Edition, then you should NOT be using a C: drive location to read the np_info.xlsx file.

 

  We always recommend finding the file in the server files and folders pane in SAS Studio and then doing a right-mouse click and choosing Properties. In the Properties window, you should see the location of the file for the LIBNAME statement. It should be something like this:

libname np xlsx "/folders/myfolders/EPG194/data/np_info.xlsx";

 

Note how there is NOT a Windows path or Windows slashes in the above path. This is the path to the NP_INFO.XLSX workbook on my University Edition installation.

 

Then you can use PROC CONTENTS to see the structure of what's inside the Workbook:


proc contents data=np._all_ nods;
run;

 

When I run this code, I see the 3 tables that you listed.

 

Cynthia

HishamSharrouf
Calcite | Level 5
thank you it works.
Reeza
Super User

@HishamSharrouf  if your problem is resolved please mark the question as solved. You can mark Cynthia's solution as correct.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 4 replies
  • 1167 views
  • 3 likes
  • 4 in conversation