![]() | ![]() | ![]() | ![]() | ![]() |
This example demonstrates how a SAS program running on z/OS can write
to a file that is automatically sent to its e-mail recipient(s) when it completes.
The key is the E-mail access method:
The body of the e-mail message is formatted as an HTML file. You can also format the message body as plain text or a graphic (GIF) image. Note: don't confuse the format type of the e-mail message body with the format type of an attached file. The two are specified independently. See Send E-mail from a DATA Step for an example of sending a plain text e-mail with an HTML attachment. To run this example, you need to provide the recipients' e-mail addresses and the
e-mail subject. These parameters are highlighted in red. The parentheses around the
e-mail addresses may be omitted if only one e-mail address is specified.
|
/* ------------------------------------------------------------------ FILENAME Option
------------------------------------------------------------------- */ filename myfile email ods listing close; /* ------------------------------------------------------------------ ODS Options
------------------------------------------------------------------- */ ods html body=myfile proc print data=sashelp.class double; quit; ods html close; ods listing; |
See the Results tab for the email that is produced.
BLUEBG Style Definition |
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
Type: | Sample |
Topic: | SAS Reference ==> Statements ==> Data Access ==> FILENAME Third Party ==> Information Exchange ==> E-mail (SMTP) |
Date Modified: | 2005-04-07 03:01:43 |
Date Created: | 2005-01-05 08:09:15 |
Product Family | Product | Host | SAS Release | |
Starting | Ending | |||
SAS System | Base SAS | z/OS | n/a | n/a |