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

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

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