SAS Programming

DATA Step, Macro, Functions and more
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; 

 

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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