BookmarkSubscribeRSS Feed
GeorgeSAS
Lapis Lazuli | Level 10

Hello everyone,

 

I am running the following SAS code to zip files in a folder(mylib) in UNIX server from SAS EG.

 

data _null_; 
call system ("gzip -r /server1/sasdata/dir1/mylib;"); 
run;

The files are very large and will take long time to finish.

May I know how I can get notification from EG when the task(gzip) is finish? 

 

Thank you!

1 REPLY 1
yabwon
Amethyst | Level 16

Hi @GeorgeSAS ,

 

I know it's not the "exact" answer but maybe you could do it "indirectly" with a little help of Outlook?

 

All the best

Bart

 

options xwait;

data _null_; 
call system ("gzip -r /server1/sasdata/dir1/mylib;"); 
run;

filename sendmail email 'xxx@yyy.zzz' subject='EG gzip done';

data _null_;
   file sendmail ;
   put 'Hi!';
   put 'Done.';
   put 'yours truly';
   put 'EG';
run;
_______________
Polish SAS Users Group: www.polsug.com and communities.sas.com/polsug

"SAS Packages: the way to share" at SGF2020 Proceedings (the latest version), GitHub Repository, and YouTube Video.
Hands-on-Workshop: "Share your code with SAS Packages"
"My First SAS Package: A How-To" at SGF2021 Proceedings

SAS Ballot Ideas: one: SPF in SAS, two, and three
SAS Documentation



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