SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
keen_sas
Quartz | Level 8

I got an XLSX file from third party and trying to import it in SAS EG using proc import/Libname methods but it does not work.If i open the XLSX file and SAVE AS with the same name also it works. Is there are any UNIX command applied in SAS to SAVE AS the XLSX file in the same location through SAS program without any manual intervention. Any other alternative to SAVE AS the XLSX file or recreate the XLSX file in the same location without manual intervention through UNIX commands in SAS or any other approach to make the file work.

1 REPLY 1
Kurt_Bremser
Super User

Your Excel file has to be available on the UNIX server, either by copying there with sftp or by storing it on a shared resource mounted on the server.

Then you can use LIBNAME XLSX to access it like a SAS library.

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 1 reply
  • 860 views
  • 1 like
  • 2 in conversation