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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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