I am trying to transfer a program that I wrote to another individual's machine as I am leaving the company. One of the first steps in the program is to import an Excel file, Period.XLSX. I use this code (and it has worked and still works for almost a year) However my co-worker can't get this code to work on his machine (we have worked for 1/2 day together to try to import this Excel file) Here is my working CODE: /* Import Periods Lookup Table */ proc import datafile = "/sas/sasperm3_prod/RiskInfrastructure/Crill/QRM/Files/Import/Period.xlsx" out= Days dbms= xlsx replace; getnames= yes; range= 'Days'; run; After much testing we have determined that this code fails on two other machines that have the latest SAS version which appears to be the only difference between me and them. My Version is 7.1 HFI(7.100.0.2002) Their Version 7.2 Their error message says that the period.xlsx is corrupt, but it is not. What is causing this? HELP PS He is able to import the file using the wizard. MORE INFORMATION ADDED: The 7.2 User can import the Period.xlsx file successfully with my code if the Excel file sits in my personal directory without corruption but if we move the Excel file to his personal directory, it fails (corrupts). I think this will give a key to the problem and answer
... View more