Hi, I´m trying to insert a padding in my sas code, I basically is making an hmtl email to send in Microsoft Outlook.
Already tried to insert atribute padding, width, margin and nothing happens...
proc odstext; p " "; p " "; p " "; p " Prazo para retorno: hoje, dia 03/08/2022, às 13 horas. "/ style=[width=50 BORDERTOPWIDTH=10 COLOR=white background=#CC092F font_weight=bold FONT_SIZE=2 font_face="Bradesco Sans" TEXTALIGN=CENTER TEXTJUSTIFY=INTER_CHARACTER]; run;
I know that there other forms of make html and email, but I already did almost everything, then I only needs this padding. Please helpp
I suggest that you may want to provide a unit anytime you use Width so that you know what you actually expect the width of a cell to be.
See if this gives you any ideas.
proc odstext; p "An attempt to have spaces at the front of text"/style=[width=4in just=right]; run;
The Just=right will align the text horizontally within the table cell box. So if the text is shorter than the box there is space in the front.
For more complex appearance you may need get into the cell template settings and have the text values in a data set.
Definitely not a Proc ODSTEXT p statement.
HTML may be an ODSTEXT statement, not the Proc, with the right Raw html inserted.
With some output I can create the document with other tools and the see what the generated instructions are. Such as to find the Raw RTF codes for something.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.