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

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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