BookmarkSubscribeRSS Feed
ws_adan
Calcite | Level 5

ws_adan_0-1595687805699.png

in message libref EXL was successfully assigned but it is now showing excel sheet in library.

libname ExL xlsx 'C:\Users\Wajeeha Bilal\Desktop\T2_YARD.XLSX';
14 REPLIES 14
PaigeMiller
Diamond | Level 26

What is your question?

--
Paige Miller
ws_adan
Calcite | Level 5

my question is i could not find excel sheet in library

ws_adan
Calcite | Level 5

dear can anyone help on this.

how can i see my sheet as dataset in SAS library.

 

there is no error no warnings in notes also showing successfully assigned.

 

please let me know what i have to do any other option to make dataset from excel.

PaigeMiller
Diamond | Level 26

The library name EXL must be used.

 

To use a particular sheet, let's say its name is SHEET1, the in SAS you must call it EXL.SHEET1.

 

For example

 

proc print data=exl.sheet1(obs=10);
run;
--
Paige Miller
Kurt_Bremser
Super User

Which kind of SAS installation do you use?

  • University Edition?
  • Enterprise Guide with a Local server?
  • Enterprise Guide/SAS Studio with a remote server?

 

ws_adan
Calcite | Level 5

Dear,

i am new and i installed below version

University Edition?

Tom
Super User Tom
Super User

Looks like your screen shot is from SAS/Studio.  So in that left hand panel open the Server Files and Folders view and find the file you want to read. Right click and open the Properties for the file.  On that pop-up screen should be the location or path for the file.  Copy that and use it in your LIBNAME statement.

Kurt_Bremser
Super User

University Edition is a "miniaturized" Business Intelligence (BI) server in a virtual machine running on Linux. It does not have access to your Windows disk drive(s), only to the shared folder you set up when you imported the VM into your virtualization software (Virtualbox or VMPlayer). You address the shared folder (if you followed the instructions correctly) as /folders/myfolders from within the VM.

Store your xlsx file in the Windows location of the shared folder, and use the correct Linux path in your SAS code. Keep in mind that Linux (like all UNIX systems) is case sensitive, so spelling is critical.

ws_adan
Calcite | Level 5

Dear ,

i did in VM as below and i put my excel file in same folder.

now what i have to do to load my excel file in SAS share folder.

ws_adan_0-1595860779470.png

 
 
 

 

Tom
Super User Tom
Super User

In your screen shot the UNIX folder name is on the left and the WINDOWS folder name is on the right.

In your SAS code you need to use the UNIX path for the file. Not the WINDOWS path.

So if your file on WINDOWS is <windows path>\filename then your SAS session will see the file at <unix path>/filename.

In SAS University edition the <unix path> is ALWAYS /folders/myfolders

Kurt_Bremser
Super User

You put your file (using Windows Explorer) in

C:\Windows\SAS\SASUniversityEdition\myfolders\filename.xlsx

and find it in UE as

/folders/myfolders/filename.xlsx
Tom
Super User Tom
Super User

Just because the LIBNAME statement works it does NOT mean that the request XLSX file was actually found.

SAS does not know whether you are trying to access and existing file or create a new file.

Check the name of the file.

ws_adan
Calcite | Level 5

Dear,

i put in  code window as below;

 

libname Yard XLSX 'C:\Windows\SAS\SASUniversityEdition\myfolders\T2_YARD.XLSX';

 

ws_adan_0-1595866074774.png

after that

PROC DATASETS LIBRARY=YARD;

ws_adan_1-1595866146415.png

it is not showing excel sheet data could you let me know what is going wrong.

is it due to university edition?

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 14 replies
  • 1147 views
  • 0 likes
  • 4 in conversation