Hello,
I have to send a mail. In this mail,
I would be interested in knowing what kind of options/statements I can use to have the same result/formatting for the attachment part and the body mail part.
Thank you very much
One approach would be to use both ODS HTML and ODS PDF when you write the report. So you write and HTML files and a PDF file. Then you can attach the PDF, and you could use the HTML file as the body of the email. Or insert the HTML into the body of the email.
Thank you for your answer and your time. I tried to put ODS HTML but did not succeed in having a good output. So I will show it (in my first post my question was regarding formatting and the problem below is what I'm referring to - problem with borders).
My code that creates the PDF file consists only of ODS TEXT statements and PROC REPORT (multiple). Nothing else, I checked.
My current output looks like the attached file (an example).
As you can see there are borders around the text (ODS TEXT statements) but none for the tables (PROC REPORT part).
Ideally, I would like these borders to disappear for the ODS TEXT part and get some borders for the PROC REPORT part.
Thank you very much for your help.
Hi,
If your question is about to how to add/remove borders, I suggest posting that as a new question. When you post, please include full example code. With an ODS PDF statement, ODS TEXT statement, and PROC REPORT. You could use SASHELP.CLASS as a source, so that people can run your code. That will make it easier for people to help you. There are plenty of ODS experts here who should be able to help with that question.
-Q.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.