BookmarkSubscribeRSS Feed
JohnK
Calcite | Level 5

Dear Friends,

I have a sas datafile like myfile.sas7bdat.gz. I am trying to extract some variables from this huge dataset under Windows on a PC.

Is it possible to read this file without uncompressing the whole file by using 7zip?

What about winzip?

Thanks for any help.

J.

3 REPLIES 3
Doc_Duke
Rhodochrosite | Level 12

This time Art's reference won't work.  Pipe works for text files, but not for direct access (.sas7bdat) files.

I'm afraid that you will have to unzip the file first to use it.

I will note that a SAS dataset that is compressed with NTFS (Windows compression) takes about the same about of space as one that is compressed with gzip, so your net disk space usage (after decompression) may be the same.  You will need double space to do the decompression itself.

Doc

art297
Opal | Level 21

Doc, Agreed!  The link I suggested wouldn't be applicable in this case.  However, the upzipping can still be incorporated in the code.  e.g.: http://groups.google.com/group/comp.soft-sys.sas/msg/f4c036b92ad17817 .  However,  I don't know of a way to accomplish the task without unzipping the entire file.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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