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
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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: