BookmarkSubscribeRSS Feed
Aashi07
Fluorite | Level 6

i need to display a sas table in the body of a mail and send the mail using sas 

5 REPLIES 5
Aashi07
Fluorite | Level 6

Aashi07_0-1745306730792.png

i tried this but not working

 

LinusH
Tourmaline | Level 20
What does not work?
Please attach full log.
Data never sleeps
Kurt_Bremser
Super User

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:

Bildschirmfoto 2020-04-07 um 08.32.59.jpg

 

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.

ChrisHemedinger
Community Manager

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.

Become an Explorer! Join SAS Analytics Explorers to learn and complete challenges that earn rewards!

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

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

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 2595 views
  • 1 like
  • 4 in conversation