Help using Base SAS procedures

PROC TABULATE and fonts

Accepted Solution Solved
Reply
Contributor
Posts: 54
Accepted Solution

PROC TABULATE and fonts

proc tabulate data=DAT1 s=[font=("calibri")];
  class EGA;
  classlev EGA / style={font=("calibri")} ;
  var n72c n72d vg1 n1 n82 n12 n42 n72c vg2 vg3 vg4 n2 n3 n4 / style={font=("calibri")} ;
  table EGA={S=[font=("calibri")]},
        sum="&header1"*(n72c="P1 %" n72d="&header5 P %" vg1="&header3" n1="&header4"*f=form1.)
        sum="&header2"*(n82="P1 %" n12="P2 %" n42="P3 %" n72c="P4 %" vg2="&header3 Range 2" vg3="&header3 Range 3" vg4="&header3 Range 4" n2="&header4 Range n2"*f=form1. n3="&header4 Range n3"*f=form1. n4="&header4 Range n4"*f=form1.)
        / box={label="&box1" style={font=("calibri")}};
run;
 
Everything is in Calibri font, except for header1 and header2.  How would I get header1 and header2 into Calibri font as well? 

Accepted Solutions
Solution
‎01-24-2018 09:47 AM
Super User
Posts: 13,498

Re: PROC TABULATE and fonts

[ Edited ]
Posted in reply to JohnSAScom

Assuming that you mean to apply the style to the label text on the SUM=

 

sum="&header1"*{S=[font=("calibri") ]} *( <rest of stuff>

 

seems to work for me.

 

If you want to apply it to every use of SUM you could try a separate

 

keyword sum /S=[font=("calibri") ];

to change the appears for all uses of the keyword sum.

View solution in original post


All Replies
Solution
‎01-24-2018 09:47 AM
Super User
Posts: 13,498

Re: PROC TABULATE and fonts

[ Edited ]
Posted in reply to JohnSAScom

Assuming that you mean to apply the style to the label text on the SUM=

 

sum="&header1"*{S=[font=("calibri") ]} *( <rest of stuff>

 

seems to work for me.

 

If you want to apply it to every use of SUM you could try a separate

 

keyword sum /S=[font=("calibri") ];

to change the appears for all uses of the keyword sum.

Contributor
Posts: 54

Re: PROC TABULATE and fonts

Yes, I did mean to apply the style to the label text on the SUM=.  Applying it to the individual sum elements did not work for me, but using keyword sum /S=[font=("calibri") ]; does work.  Thank you! 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 172 views
  • 0 likes
  • 2 in conversation