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
Onyx | Level 15

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



Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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