- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 12-01-2020 06:57 PM
(565 views)
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";
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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;