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.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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