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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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!

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