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
SAS Super FREQ
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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register 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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

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