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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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