Sample 42404: Create a link to an e-mail address from ODS
A link can be created to an e-mail address in various ways, including using the TITLE and FOOTNOTE statements with the LINK= option. This option will allow ODS to build a link based on the qualifier passed. If you pass the HTTP: qualifier, the link will be created for a Web page. If you pass the MAILTO: qualifier, the link will be created for an e-mail address.
The example code on the Full Code tab adds a link to both the PDF and HTML file with the e-mail address, and passes the Subject, the Title, and the CC as parameters.
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.
The example code below adds a link to both the PDF and HTML file with the e-mail address, and passes the Subject, the Title, and the CC as parameters.
ods pdf file="c:\temp.pdf";
ods html file="c:\temp.html";
proc print data=sashelp.class;
title link='mailto:someaddress@wnt.sas.com?subject=Test&CC=anotheraddress@wnt.sas.com&body=Base SAS Rocks' "test";
run;
ods html close;
ods pdf close;
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.
This sample illustrates how to create a link to an e-mail address from ODS.
| Date Modified: | 2011-03-31 16:20:33 |
| Date Created: | 2011-02-16 10:56:51 |
Operating System and Release Information
| SAS System | Base SAS | Microsoft Windows XP Professional | 9.21_M3 | | 9.2 TS2M3 | |
| Windows 7 Enterprise 32 bit | 9.21_M3 | | 9.2 TS2M3 | |
| Windows 7 Enterprise x64 | 9.21_M3 | | 9.2 TS2M3 | |
| Microsoft Windows Server 2008 for x64 | 9.21_M3 | | 9.2 TS2M3 | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.21_M3 | | 9.2 TS2M3 | |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.21_M3 | | 9.2 TS2M3 | |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.21_M3 | | 9.2 TS2M3 | |
| Microsoft Windows XP 64-bit Edition | 9.21_M3 | | 9.2 TS2M3 | |
| Microsoft® Windows® for x64 | 9.21_M3 | | 9.2 TS2M3 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.21_M3 | | 9.2 TS2M3 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.21_M3 | | 9.2 TS2M3 | |
| Microsoft Windows Server 2003 Standard Edition | 9.21_M3 | | 9.2 TS2M3 | |
| Microsoft Windows Server 2003 for x64 | 9.21_M3 | | 9.2 TS2M3 | |
| Microsoft Windows Server 2008 | 9.21_M3 | | 9.2 TS2M3 | |
| z/OS | 9.21_M3 | | 9.2 TS2M3 | |
| Windows 7 Home Premium 32 bit | 9.21_M3 | | 9.2 TS2M3 | |
| Windows 7 Home Premium x64 | 9.21_M3 | | 9.2 TS2M3 | |
| Windows 7 Professional 32 bit | 9.21_M3 | | 9.2 TS2M3 | |
| Windows 7 Professional x64 | 9.21_M3 | | 9.2 TS2M3 | |
| Windows 7 Ultimate 32 bit | 9.21_M3 | | 9.2 TS2M3 | |
| Windows 7 Ultimate x64 | 9.21_M3 | | 9.2 TS2M3 | |
| Windows Vista | 9.21_M3 | | 9.2 TS2M3 | |
| Windows Vista for x64 | 9.21_M3 | | 9.2 TS2M3 | |
| 64-bit Enabled AIX | 9.21_M3 | | 9.2 TS2M3 | |
| 64-bit Enabled HP-UX | 9.21_M3 | | 9.2 TS2M3 | |
| 64-bit Enabled Solaris | 9.21_M3 | | 9.2 TS2M3 | |
| HP-UX IPF | 9.21_M3 | | 9.2 TS2M3 | |
| Linux | 9.21_M3 | | 9.2 TS2M3 | |
| Linux for x64 | 9.21_M3 | | 9.2 TS2M3 | |
| OpenVMS on HP Integrity | 9.21_M3 | | 9.2 TS2M3 | |
| Solaris for x64 | 9.21_M3 | | 9.2 TS2M3 | |