BookmarkSubscribeRSS Feed
mrodriguess
Calcite | Level 5

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

3 REPLIES 3
ballardw
Super User

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.

mrodriguess
Calcite | Level 5

Not basically... My idea is centralize the text. I think that an html border works too, but I has couldn´t referenciate too.

Screen-Shot-2021-08-03-at-1.38.36-AM

 

ballardw
Super User

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.

SAS INNOVATE 2024

Innovate_SAS_Blue.png

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. 

Register now!

How to Concatenate Values

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 763 views
  • 0 likes
  • 2 in conversation