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.

Register for SAS Innovate 2025!! The premier event for SAS users, May 6-9 in Orlando FL. Sign up now for the best deals!

sas-innovate-white.png

Missed SAS Innovate in Orlando?

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.

 

Register 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
  • 436 views
  • 1 like
  • 4 in conversation