BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hello All -

I've just started using some basic ODS features, and have been working around with having procedure output automatically emailed to a recipient list.

There is an article in the SAS Support Knowledge base with this, and includes a code sample. However, when I try to run that sample, the code 'run's but then hangs and never actually closes out. (EG Continues to show status as 'Running PROC PRINT')

http://support.sas.com/onlinedoc/913/getDoc/en/lrdict.hlp/a002058232.htm#a002058241

Link to the Doc is noted here - any help would be greatly appreciated.
4 REPLIES 4
Cynthia_sas
Diamond | Level 26
Hi:
Your best bet for help with this might be to contact Tech Support. For emailing from a SAS program to work, there are startup time settings that have to be in place for the code to successfully launch email. You also have to know whether you're using Windows Outlook or SMTP for mailing.
http://support.sas.com/kb/14/818.html
http://support.sas.com/kb/18/163.html
http://support.sas.com/kb/10/545.html
http://support.sas.com/kb/5/552.html

cynthia
deleted_user
Not applicable
Thanks for the response Cynthia -

The issue actually is that the email distribution is working. The entire piece of code works through 'completion', its just that it literally doesn't close out. It continues to run even though there are no other statements to process.

I will contact tech support though.
deleted_user
Not applicable
Check that your last data step is closed with a Run; statement and if your last step in the code node is a procedure then ensure that you have closed its execution with either a Run; or Quit; statement as is needed for the procedure.

Kind regards

David
deleted_user
Not applicable
If the code is complete with a final "Run;" statement, you may have an email configuration problem.

What email service is being used by your SAS server?

Has your email server decided to prompt the SAS program (like outlook might for security or an email address clarification). Through EG your SAS program would have no window in which to pass the question back to you ~ so the email server remains waiting for the SAS program to decide what to do.

PeterC

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore Now →
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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1563 views
  • 0 likes
  • 2 in conversation