Help using Base SAS procedures

Creating a library

Reply
Occasional Contributor
Posts: 19

Creating a library

I have a set of excel files which have around 10 sheets in them. I have to import all of these in SAS Enterprise Guide which becomes very time consuming and tedious at times. 

 

I'm sure there is way to do this using code without importing everyfile. 

 

I tried defining a library using the statement on SAS 9.3,

 

libname xyz EXCEL PATH = 'W:\Desktop\Probablistic Load Forecasting\Week5\Trial_Holiday_Effect\2004.xlsx' 

also I tried

libname xyz  'W:\Desktop\Probablistic Load Forecasting\Week5\Trial_Holiday_Effect\2004.xlsx' 

 

I get error:

ERROR: Library XYZ is not in a valid format for access method RANDOM.
ERROR: Error in the LIBNAME statement.

 

Kindly help me out 

 

Trusted Advisor
Posts: 1,137

Re: Creating a library

Posted in reply to varun1220
Please try

libname xyz xlsx 'W:\Desktop\Probablistic Load Forecasting\Week5\Trial_Holiday_Effect\2004.xlsx'
Thanks,
Jag
Occasional Contributor
Posts: 19

Re: Creating a library

Posted in reply to Jagadishkatam

Not Working. Same error. 

Super User
Posts: 3,260

Re: Creating a library

Posted in reply to varun1220

Creating an EXCEL library requires the SAS product SAS/ACCESS to PC Files. Look in Properties of your EG SAS Server List under SASApp or similar and check if you have this product.

Ask a Question
Discussion stats
  • 3 replies
  • 283 views
  • 0 likes
  • 3 in conversation