BookmarkSubscribeRSS Feed
San_0611
Calcite | Level 5

Hi there  .

 

I am  using SAS University  Edition  and  trying to  access excel workbook products.xlsx using  excel and  pcfiles  engines.

 

I am  using  Excel 2013  with 64 bit  and SAS University  edition  with 64 bit  on my personal  computer.

 

The  path I  am  using is  "path=/folders/myfolders/products.xlsx;

The  code  is  as  follows ,

options  validvarname=V7;

libname  prod pcfiles path="&path\products.xlsx";

proc contents data= prod._all_;
run;

I am  getting  the  following  errors,

         libname  prod pcfiles path="&path\products.xlsx";
 ERROR: The SERVER= option is required for establishing a connection through the SAS/ACCESS Interface to PC Files.
 ERROR: Error in the LIBNAME statement.
        
         proc contents data= prod._all_;
         run;
 
 ERROR: Libref PROD is not assigned.
 NOTE: Statements not processed because of errors noted above.

 I  am not  getting  why  this  error comes  there  when I  try to use  excel  and  pcfiles  engines . Please help 

Thanks  in advance ,

Sanika:)

2 REPLIES 2
SuryaKiran
Meteorite | Level 14

Did you check XLSX libname engine.

 

/* because Excel field names often have spaces */
options validvarname=any;
 
libname xl XLSX '/folders/myfolders/sas_tech_talks_15.xlsx';
 
/* discover member (DATA) names */
proc datasets lib=xl; quit;
 
libname xl CLEAR;
Thanks,
Suryakiran

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 2972 views
  • 0 likes
  • 3 in conversation