i need to display a sas table in the body of a mail and send the mail using sas
i tried this but not working
NEVER post pictures of code or other code-related text. Copy/paste the text into a window opened with the respective buttons. The button for logs and other non-proportional text is this:
The "little running man" to the right is for SAS code, and provides colorng similar to the SAS Enhanced Editor.
Whenever you have an issue with code, do ALWAYS post the whole (all code and messages) log of the failing step/macro/etc.
It looks like you are referencing a number of macro routines that you have in your org, but I cannot tell what those do...
To embed tables in the body of the email, you use ODS to create a file with the table (and other content), then FILENAME EMAIL to send it with that ODS file as the body. This article has a simple example. My advice is to see if you can get that to work before bringing in the more complex macro constructs you have.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.