Are you asking how the commands gzip and gunzip work?
Shouldn't that be asked somewhere else?
If you want to see what messages the operating system is generating when you run those commands I recommend NOT using the X command. Instead use a PIPE so your can read the responses and at least write them to the SAS log.
data _null_;
infile
"gunzip path/to/public/sale_21.sas7bdat.gz &2>1"
pipe
;
input;
put _infile_;
run;
If that does not work then just try opening a terminal window to the SAS server and running the commands directly in the terminal window and observe the behavior. Perhaps your system has defined an alias for gzip that causes it to not replace the existing file but leave it behind.
Are you asking how the commands gzip and gunzip work?
Shouldn't that be asked somewhere else?
If you want to see what messages the operating system is generating when you run those commands I recommend NOT using the X command. Instead use a PIPE so your can read the responses and at least write them to the SAS log.
data _null_;
infile
"gunzip path/to/public/sale_21.sas7bdat.gz &2>1"
pipe
;
input;
put _infile_;
run;
If that does not work then just try opening a terminal window to the SAS server and running the commands directly in the terminal window and observe the behavior. Perhaps your system has defined an alias for gzip that causes it to not replace the existing file but leave it behind.
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 25. 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.