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

I have a two .rar files, trade.part1.rar and trade.part2.rar. The first one is 1GB and the second 65MB. I want to decompress this files and import the data into sas. How can I do this.

1 ACCEPTED SOLUTION
2 REPLIES 2
Tom
Super User Tom
Super User

A RAR file is a different compressed file format.  It supports writing the archive as multiple files, which you seem to have.  SAS does not supply built in support for RAR files.  So expand the file first and then SAS can use the expanded files.  There is a winRAR application you can buy.  Or you can use 7-Zip.  Once you see what is in the file you can then decide how you might be able to use the contents with SAS.  For example if the file contains one GIANT text file then just write a data step to read it.  if it contains SAS datasets then you should be able to reference them directly from where you expanded them.  If it contains multiple files you might need to do different things with the different files.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

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
  • 765 views
  • 0 likes
  • 3 in conversation