- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
SAS can only read zip and gzip archives directly. You have to use an external program to uncompress the RAR archives.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
SAS can only read zip and gzip archives directly. You have to use an external program to uncompress the RAR archives.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.