BookmarkSubscribeRSS Feed
meckarthik
Quartz | Level 8

Hi,

I've requirements to send an email with xlsx. attachment along with the need to show the content from another temporary sas table in the email body. 

Currently, the email attachment is working, can we add contents from another sas table to the email body as below? 

Bold lines are to be added 

 

Say example 

 

DATA _NULL_;       

FILE OUTBOX;    

PUT %SYSFUNC(COMPBL("Hi ));

PUT ;

PUT %SYSFUNC(COMPBL("The following advertisers have a due to expire in the next 21 days:  &Client_Name.."));

PUT ;

"Adding list from the temp sas table 

Firstname Familyname address

"

PUT %SYSFUNC(COMPBL("Please ask the clients to remove the tags from their website before this date."));

PUT ;

PUT %SYSFUNC(COMPBL("Full list of Advertisers and their expiry date is attached."));

PUT ;

PUT %SYSFUNC(COMPBL("Thanks"));

run;

FILENAME OUTBOX CLEAR;

1 REPLY 1
Sajid01
Meteorite | Level 14

Add the following statements.

1.set mydataset ; /*after data _null_;*/

2.put @1 var1 @10 var ; /* this is an example. Add where bold lines are*/

Then you should be good to go.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 1 reply
  • 677 views
  • 0 likes
  • 2 in conversation