Using PROC ODSTEXT to generate the body of an email, extra spaces are being inserted into the text after 136 or more characters. The code renders correctly in SAS Studio but not in the generated email. The email has a space embedded in the email address in the text, making it inactive as a link.
ods listing;
ods MSOFFICE2k body=outbox style=sasweb;
title; footnote;
* Enter the body of your email with a 'p' statement within the PROC ODSTEXT procedure block; proc odstext; p 'Aloha,' /style={fontsize=12pt}; p "^{newline}"; p "Here is your updated list of roles that currently contain staff out due to Covid. Please use this data to validate staffing on your unit."/ style={fontsize=12pt}; p "^{newline}"; list /style={fontsize=12pt}; item "If you see incorrect information (i.e. someone is back and the report says they are still out) please email SomeEmailAddress@MyCompany.com"/ style={liststyletype="disc"}; item "This data is also being sent to your directors/VP and if you have a pertinent issue with staffing please reach out to them for assistance."/ style={liststyletype="disc"}; item "If you have an employee on this list that is no longer reporting to you, please disregard. There may be a lag in PeopleSoft for transfers."/ style={liststyletype="disc"}; end; p "^{newline}"; p "Attached report prepared for: &Name" /style={fontsize=12pt}; p "^{newline}"; p "Mahalo," /style={fontsize=12pt}; p "^{newline}"; p "ITIM-Support@queens.org" /style={fontsize=12pt}; * p "www.queens.org" /style={fontsize=12pt}; run;
ods listing close; ods _all_ close;
... View more