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;
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+
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.
Thank you!
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.