filename target "/sas/base.sas7bdat";
filename fromzip ZIP "/sas/base.sas7bdat.gz" GZIP;
data _null_;
infile fromzip lrecl=256 recfm=F length=length eof=eof unbuf;
file target lrecl=256 recfm=N;
input;
put _infile_ $varying256. length;
return;
eof:
stop;
run;
Hi,
I am trying to unzip base.sas7bdat.gz
file by using above script.
Unfortunately, i end up with below errors:
ERROR: Error in the FILENAME statement.
ERROR 23-2: Invalid option name GZIP.
ERROR: No logical assign for filename FROMZIP.
Could someone help me with this issue.
I am using SAS EG V7.11
Thanks,
vnreddy
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.