BookmarkSubscribeRSS Feed
bluewind123
Calcite | Level 5

Hi there, I write a simple SAS stored procedure please see below, running a command from system, after it is finished, I want to publish a message to show the procedure finished, how could I do? Second, is there anyway I could return and publish the running results from the command I run from system? Please advise, thank you!

======

data _null_;
do;
call system ("ksh /xxx/cleanup_process.sh >> /xxx/crontabjob.log 2>&1");
call system ("echo cleanup_procee.sh is finished");  /*this doesn't work*/
end;
run;

 

1 REPLY 1
LinusH
Tourmaline | Level 20
To be able to return any message from s system call, use FILENAME PIPE instead.

For returning anything to the user there's a lot of documentation and papers on the subject.
Hint: _webout.
Data never sleeps

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 1 reply
  • 560 views
  • 0 likes
  • 2 in conversation