BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Jesusismygrace
Obsidian | Level 7

Hi,

I am so sorry, I know that this has been discussed, but I just can't figure it out. I am using SAS EG 7 and I would like to read gzip files in my program, but I can get the example that I found to work.

 

My coding:

libname MY21det  '/nfs/sasarch/MI/hedis/hedis_vendor/production/inovalon/MY2021/inovalon/data/';

%let Measure=COU;

 

filename MY21D GZIP '/nfs/sasarch/MI/hedis/hedis_vendor/production/inovalon/MY2021/inovalon/data/download/May_Prod_Run2/&Measure..sas7bdat.gz'

member="&Measure..sas7bdat";

 

data _null_;

infile MY21D;

input a $80.;

run;

1 ACCEPTED SOLUTION
6 REPLIES 6
Reeza
Super User

What version of SAS do you have? 

You can check with the following:

 

proc product_status;run;

Check the log for the results, should be something like:

SAS 9.4M5

 

GZIP is supported 9.4M5+

Jesusismygrace
Obsidian | Level 7
Thank you for getting back to me. Also, I am using EG 7.15 (7.100.5.5850) (32-bit)

For Base SAS Software ...
Custom version information: 9.4_M7
Image version information: 9.04.01M7P080520
For SAS/STAT ...
Custom version information: 15.2
For SAS/GRAPH ...
Custom version information: 9.4_M7
For SAS/ETS ...
Custom version information: 15.2
For SAS/ACCESS Interface to Netezza ...
Custom version information: 9.44
For SAS Integration Technologies ...
Custom version information: 9.4_M7
For SAS/Secure 168-bit ...
Custom version information: 9.41_M4
For High Performance Suite ...
Custom version information: 2.2_M8
For SAS/ACCESS Interface to Oracle ...
Custom version information: 9.44
For SAS/ACCESS Interface to PC Files ...
Custom version information: 9.4_M7
For SAS/ACCESS Interface to ODBC ...
Custom version information: 9.4_M7
For SAS/ACCESS Interface to Microsoft SQL Server ...
Custom version information: 9.45
Kurt_Bremser
Super User

According to the documentation, the syntax should be

filename MY21D
  zip
  '/nfs/sasarch/MI/hedis/hedis_vendor/production/inovalon/MY2021/inovalon/data/download/May_Prod_Run2/&Measure..sas7bdat.gz'
  gzip
  member="&Measure..sas7bdat"
;

GZIP is a sub-option of FILENAME ZIP.

Jesusismygrace
Obsidian | Level 7

Thank you!

Jesusismygrace
Obsidian | Level 7
Thank you! It worked perfectly!

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 6 replies
  • 968 views
  • 4 likes
  • 3 in conversation