hi
I have some files stored on sas grid (linux server). the usual command. I use sas eg for programming. I need to zip up some sas datasets on the linux server.
The following code is not working. Any alternatives?
X gzip "/gpfsFS2/sas/folders/201912/carsinformation.sas7bdat";
Have you tried this method?
filename CSV "%sysfunc(pathname(WORK))/file.csv";
ods package(zipout) open nopf;
ods package(zipout) add file=CSV path="/";
ods package(zipout) publish archive
properties (archive_name="file.zip"
archive_path="%sysfunc(pathname(WORK))");
ods package(zipout) close;
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 lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.