Help using Base SAS procedures

Email how to print a few lines of text in the body?

Accepted Solution Solved
Reply
Contributor
Posts: 27
Accepted Solution

Email how to print a few lines of text in the body?

How do I add some text to an email before I add the datasets?

 

ODS HTML3 BODY=MAIL STYLE=MYMAIL;

***ADD A FEW LINES OF TEXT HERE with some summary info

PROC PRINT DATA=RZtoBV;
    TITLE "blah blah";
RUN;

ODS HTML3 CLOSE;

etc..

Essentially I need 3 "titles" printed before that dataset... 

 

Thanks!!

 


Accepted Solutions
Solution
‎04-30-2018 09:03 AM
Contributor
Posts: 27

Re: Email how to print a few lines of text in the body?

Posted in reply to KurtBremser

 

Ahhh well you were close.. thank you your ODS TEXT allowed me to find ODS HTML3 TEXT

which is exactly what I needed

 

ODS HTML3 BODY=MAIL STYLE=MYMAIL;

ODS HTML3 TEXT="text";

 

 

View solution in original post


All Replies
Super User
Posts: 10,209

Re: Email how to print a few lines of text in the body?

Look at the ODS TEXT= statement.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Contributor
Posts: 27

Re: Email how to print a few lines of text in the body?

Posted in reply to KurtBremser

ODS TEXT="text here"

is putting the text below the first title, and above the data table?

 

 

Super User
Posts: 10,209

Re: Email how to print a few lines of text in the body?

In my experience, yes, Try it.


@StaticFX wrote:

ODS TEXT="text here"

is putting the text below the first title, and above the data table?

 

 


 

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Solution
‎04-30-2018 09:03 AM
Contributor
Posts: 27

Re: Email how to print a few lines of text in the body?

Posted in reply to KurtBremser

 

Ahhh well you were close.. thank you your ODS TEXT allowed me to find ODS HTML3 TEXT

which is exactly what I needed

 

ODS HTML3 BODY=MAIL STYLE=MYMAIL;

ODS HTML3 TEXT="text";

 

 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 151 views
  • 1 like
  • 2 in conversation