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

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 750 views
  • 1 like
  • 2 in conversation