BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
IgorR
Quartz | Level 8

Hi,

When I run Proc Import , SAS demands to close the excel file I'm importing from.

Is there a possibility to import when keeping the excel open?

Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
IgorR
Quartz | Level 8

Hi,

I found how to do it - just open the excel file in read-only mode.

So SAS can import data from the file and there no need to close the workbook.

View solution in original post

3 REPLIES 3
Kurt_Bremser
Super User

Excel opens files in read/write mode (and keeps them open), since it expects to update data. Always close files in Excel when you're done.

Or export to text (csv) and read that.

andreas_lds
Jade | Level 19

@IgorR wrote:

Hi,

When I run Proc Import , SAS demands to close the excel file I'm importing from.

Is there a possibility to import when keeping the excel open?

Thanks

 


No.

IgorR
Quartz | Level 8

Hi,

I found how to do it - just open the excel file in read-only mode.

So SAS can import data from the file and there no need to close the workbook.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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
  • 3 replies
  • 1099 views
  • 1 like
  • 3 in conversation