BookmarkSubscribeRSS Feed
Dee3
Calcite | Level 5

Hi! I'm very new with SAS and one thing that I can't recall that we have already done during class was uploading xlsx file and converting it to become a .sas7bdat or SAS table. Can you please give me reference a link or a step by step refresher for this? Thanks in advance!

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Here are the free SAS guidance videos:

https://video.sas.com/category/videos/how-to-tutorials

 

Specifically:

https://video.sas.com/category/videos/sas-studio#category/videos/sas-studio/1

 

At least one of them is on importing data.

Tom
Super User Tom
Super User

The simplest way to convert an XLSX file to SAS dataset(s) is to use the XLSX libname engine and PROC COPY.

libname in xlsx 'mysheets.xlsx';
proc copy inlib=in outlib=work;
run;

The question of "uploading" depends a lot on your setup.  The SAS code above needs to be able to see the XLSX file to work. So if you have the file on your PC but you are running SAS on some other machine (or in a virtual machine) then you need to move the file to a place where SAS can see it.

Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

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
  • 2 replies
  • 15324 views
  • 0 likes
  • 3 in conversation