Greetings from Minnesota; I am sending an email via SAS code, and I am having some trouble with some of the formatting. I successfully figured out how to put text, then a report, and then more text into the email; moreover, I added a PROC FORMAT to modify a STYLE to remove borders and unnecessary style effects from my text. However, there are large gaps (spacings, margins, etc. - I'm not sure of the proper term) before and after my "opening" and "closing" texts. Is there a way to collapse these large spaces to produce a much shorter email body? My Code PROC TEMPLATE;
DEFINE STYLE STYLES.SASWEBMOD;
PARENT=STYLES.SASWEB;
CLASS SYSTITLEANDFOOTERCONTAINER / HTMLSTYLE="BORDER:NONE";
END;
RUN;
FILENAME MYMAIL EMAIL
FROM = "JOHN_DOE@COMPANY.COM"
TO = "JOHN_DOE@COMPANY.COM"
SUBJECT = "TEST EMAIL SUBJECT"
CONTENT_TYPE = "TEXT/HTML";
ODS _ALL_ CLOSE;
ODS HTML3 BODY=MYMAIL RS=NONE STYLE=SASWEBMOD;
OPTIONS NOCENTER;
/*OPENING TEXT*/
DATA _NULL_;
FILE PRINT;
PUT "The text that precedes the SAS Report goes here.";
RUN;
/*REPORT*/
TITLE1 "SAS Report header goes here.";
PROC REPORT DATA = SASHELP.CLASS(OBS=5);
COLUMNS _ALL_;
DEFINE _ALL_ / DISPLAY CENTER;
RUN;
TITLE;
/*CLOSING TEXT*/
DATA _NULL_;
FILE PRINT;
PUT "The text that proceeds the SAS Report goes here.";
RUN;
ODS _ALL_ CLOSE;
ODS LISTING; Sample Output Thanks in advance for your help!
... View more