I don't know how to Google this; perhaps I'm getting this wrong. The premise to the idea I'm wondering is this; is it that Proc Templates are suppose to work like CSS. If I'm right, something like this can be done. Or should I just use macros?
<[EDIT]>
What I am wanting to do below is to define a label " TitlePageTitle " for which I associate font attributes. Later, in a (general) procedure, I wish to be able to call that label, using /STYLE= , and have all font attributes applied to the object in the statement. Much like a class attribute in HTML.
proc template;
define style Styles.F_Report;
parent = Styles.HTMLBW;
class fonts
"Fonts used in the default style" /
'TitlePageTitle' = ( "Times New Roman",28pt,Bold Italic)
'docFont' = ("Arial Narrow, Helvetica, sans-serif",10pt);
end;
run;
ods PDF
style=Styles.F_Report
STARTPAGE=NEVER;
proc ODStext;
p "County Facilities" /STYLE={class=TitlePageTitle};
p "Average Population" /STYLE={class=TitlePageTitle};
p ;
p "[[Date here]]"; /*October 2020*/
p ;
run;
... View more