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!
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—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.