BookmarkSubscribeRSS Feed
Mike_Davis
Fluorite | Level 6


Hello everyone,

I have a problem to import an excel 2003(.xls) file with password  into SAS.

Suppose the file's full location and name is c:\temp\aaa.xls,,,, password is "abc"  ,,,,, and sheet's name is "sheet1".

Does anyone could tell me how to write SAS code to import this file?

I attached the excel file .password is "abc".

Thanks!

Mike

PROC IMPORT
OUT= need
DATAFILE= "c:\temp\aaa.xls"
DBMS=EXCEL REPLACE;

SHEET="sheet1$";

GETNAMES=YES;
MIXED=YES;
USEDATE=YES;
SCANTIME=YES;
SCANTEXT=YES;
password='abc';/*This part does  not work*/
RUN;

3 REPLIES 3
Mike_Davis
Fluorite | Level 6

I have searched this topic before post my question ,but I don't understand  well on that.

Thanks

Mike

Tom
Super User Tom
Super User

The issue is that SAS does not have a PASSWORD= option, so you need to use one of the work around methods mentioned in the thread linked by haikuo bian above.  Read the thread and the papers that are linked in that thread.

If you still have detailed questions then ask them.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1030 views
  • 0 likes
  • 3 in conversation