BookmarkSubscribeRSS Feed
sahnti
Calcite | Level 5

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
ChrisNZ
Tourmaline | Level 20

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; 

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 727 views
  • 1 like
  • 2 in conversation