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
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: