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.
SAS can only read zip and gzip archives directly. You have to use an external program to uncompress the RAR archives.
SAS can only read zip and gzip archives directly. You have to use an external program to uncompress the RAR archives.
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 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.