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.
Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.
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.