Had to change email system to CSSMTP for security reasons and and now getting   characters after line breaks in email body. Utilizing ODS HTML3 with style=sasweb. I've played around with different ODS destinations, styles and options and cannot seem to make it disappear. Anyone have any ideas?
Why are you writing HTML as fixed length 80 byte records (card images)?
I suspect it is having to flow the code into such a cramped format that is causing extra spaces to make their way into the generated HTML.
Cynthia,
Different HTML destinations do remove it, but change the body formatting of the email drastically:
HTML4
HTML5
I don't know enough about how styles work with different HTML outputs.
Jeff
I forgot to mention, there also looks like a space in the word February in the title that wasn't there before.
filename myfile email
to=("xxxxxxxx@usda.gov")
from=("xxxxxxxx@usda.gov")
sender=("xxxxxxxx@.usda.gov")
replyto=("xxxxxxxx@usda.gov")
subject="DISC daily mainframe metrics"
type="text/html"
sysout=b
pgm=ktcpsmtp
encoding=ascii
lrecl=80
blksize=80
recfm=fb;
run;
ods html3 body=myfile rs=none style=sasweb;
proc print data=work.plat noobs;
var cecser minpltbusy avgpltbusy maxpltbusy
minzipbusy avgzipbusy maxzipbusy;
where system='SYSA';
title1 j=left c=black height=6pt
"Here are the daily metrics.";
title2 j=left c=black height=6pt
"xxxxxxxx";
title3 " ";
title4 "&serial&type DISC frame 24hr metrics for &rptdate";
run;
proc print data=work.sys noobs;
by system;
var cecser system hour minsysbusy avgsysbusy maxsysbusy
minzipbusy avgzipbusy maxzipbusy;
title "&serial&type DISC systems 24hr metrics for &rptdate";
run;
Why are you writing HTML as fixed length 80 byte records (card images)?
I suspect it is having to flow the code into such a cramped format that is causing extra spaces to make their way into the generated HTML.
This came from an example of how to use CSSMTP on the mainframe. It is passing the entire email to the CSSMTP via JES. I increased the record length and blocksize to 133 and it eliminated it. Good catch!!
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.
Ready to level-up your skills? Choose your own adventure.