Help using Base SAS procedures

how could I get outputs from stored procedure

Reply
Regular Learner
Posts: 1

how could I get outputs from stored procedure

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;

 

Super User
Posts: 5,884

Re: how could I get outputs from stored procedure

Posted in reply to bluewind123
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
Ask a Question
Discussion stats
  • 1 reply
  • 112 views
  • 0 likes
  • 2 in conversation