The SAS Output Delivery System and reporting techniques

task that send e-mail does not stop running. Why?

Reply
N/A
Posts: 1

task that send e-mail does not stop running. Why?

I have code that sends an email. When I run the code, the email is sent so it works fine. But the task does not want to end.

I ran my code in Enterprise Guide 4.1. It keeps saying 'RUNNING PROC REPORT' as status, although I recieved the mail already and everything is finished.

The task does not stop unless I stop it manually by pressing the STOP button. What is wrong with my code?

%macro sendemail(toAdress);

ods listing close;

data person;

set wiplot_mail_sort;

  where mailto eq "&toAdress";

run;

footnote;

title;

filename outfile email subject="title"

                        from="****@***.be"

                        to="****@***.be"

                        type="text/html";

options nocenter;

ods html3 body=outfile style=SASWEB ;

title "Title";

footnote 'Footnote';

  proc report data=person WRAP NOWINDOWS split='+';

columns ...;

  define .../ display noprint;

  define ... / '...';

  define .../display;

  run;

  ods html3 close;

  ods listing;

%mend sendemail;

%sendemail(***@****.be);

Post a Question
Discussion Stats
  • 0 replies
  • 146 views
  • 0 likes
  • 1 in conversation