DATA Step, Macro, Functions and more

Kill SAS Session via HTML in a Stored Process

Reply
Senior User
Posts: 1

Kill SAS Session via HTML in a Stored Process

Hi all,

 

I'm trying to kill my SAS Session in an alert message created by my Stored Process Output.

 

Currently i have this macro:

 

%macro output(output_tp);

%if &output_tp = 1 %then %do;
DATA _NULL_;
file _webout ;
val = '<script type="text/JavaScript"> if (confirm("Adhoc Loading, do you wish to abort the process?"))
{
alert("Process Terminated");
}
</script>';
put val;
run;
%end;

%mend output;

%output(1);

 

After the alert "Process Terminated" i would like to execute something like  x "kill -9 &SYSJOBID" but i don't know how to do it inside HTML.

 

Using 9.3 in Solaris

  

Best regards and thanks a lot for your help,
 
Carlos Francisco

 

 

Ask a Question
Discussion stats
  • 0 replies
  • 157 views
  • 0 likes
  • 1 in conversation