<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Can I assign a style by using a &amp;quot;class&amp;quot; defined in Proc Template? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-I-assign-a-style-by-using-a-quot-class-quot-defined-in-Proc/m-p/747895#M25062</link>
    <description>&lt;P&gt;I don't know how to Google this; perhaps I'm getting this wrong.&amp;nbsp; The premise to the idea I'm wondering is this; is it that Proc Templates are suppose to work like CSS.&amp;nbsp; If I'm right, something like this can be done.&amp;nbsp; Or should I just use macros?&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;lt;[EDIT]&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;What I am wanting to do below is to define a label "&lt;CODE class=" language-sas"&gt;TitlePageTitle&lt;/CODE&gt;" for which I associate font attributes.&amp;nbsp; Later, in a (general) procedure, I wish to be able to call that label, using &lt;CODE class=" language-sas"&gt;/STYLE=&lt;/CODE&gt;, and have all font attributes applied to the object in the statement.&amp;nbsp; Much like a &lt;A href="https://www.w3schools.com/tags/att_class.asp" target="_self"&gt;class attribute in HTML.&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;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;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jun 2021 13:33:17 GMT</pubDate>
    <dc:creator>PhilC</dc:creator>
    <dc:date>2021-06-15T13:33:17Z</dc:date>
    <item>
      <title>Can I assign a style by using a "class" defined in Proc Template?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-I-assign-a-style-by-using-a-quot-class-quot-defined-in-Proc/m-p/747895#M25062</link>
      <description>&lt;P&gt;I don't know how to Google this; perhaps I'm getting this wrong.&amp;nbsp; The premise to the idea I'm wondering is this; is it that Proc Templates are suppose to work like CSS.&amp;nbsp; If I'm right, something like this can be done.&amp;nbsp; Or should I just use macros?&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;lt;[EDIT]&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;What I am wanting to do below is to define a label "&lt;CODE class=" language-sas"&gt;TitlePageTitle&lt;/CODE&gt;" for which I associate font attributes.&amp;nbsp; Later, in a (general) procedure, I wish to be able to call that label, using &lt;CODE class=" language-sas"&gt;/STYLE=&lt;/CODE&gt;, and have all font attributes applied to the object in the statement.&amp;nbsp; Much like a &lt;A href="https://www.w3schools.com/tags/att_class.asp" target="_self"&gt;class attribute in HTML.&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;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;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 13:33:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-I-assign-a-style-by-using-a-quot-class-quot-defined-in-Proc/m-p/747895#M25062</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2021-06-15T13:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can I assign a style by using a "class" defined in Proc Template?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-I-assign-a-style-by-using-a-quot-class-quot-defined-in-Proc/m-p/747936#M25067</link>
      <description>&lt;P&gt;What are you trying to achieve so that I can help you?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 19:39:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-I-assign-a-style-by-using-a-quot-class-quot-defined-in-Proc/m-p/747936#M25067</guid>
      <dc:creator>Athenkosi</dc:creator>
      <dc:date>2021-06-14T19:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can I assign a style by using a "class" defined in Proc Template?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-I-assign-a-style-by-using-a-quot-class-quot-defined-in-Proc/m-p/747949#M25068</link>
      <description>&lt;P&gt;I would start with something like this:&lt;/P&gt;
&lt;PRE&gt;proc template;
source styles.htmlbw;
run;&lt;/PRE&gt;
&lt;P&gt;The LOG will show the definition of the Parent style.&lt;/P&gt;
&lt;P&gt;You may have to trace this back a few levels depending on exactly what you want to modify.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That may get you the names of things you want to modify. The syntax is not the same as CSS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you replace a "class" instead of modifying it you may "orphan" items set in the class that are used elsewhere. You may be looking to override specific class statements and the source will help given a specific parent.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 20:08:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-I-assign-a-style-by-using-a-quot-class-quot-defined-in-Proc/m-p/747949#M25068</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-06-14T20:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can I assign a style by using a "class" defined in Proc Template?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-I-assign-a-style-by-using-a-quot-class-quot-defined-in-Proc/m-p/748115#M25077</link>
      <description>&lt;P&gt;Forgive me, I was not clear, I am editing the question.&amp;nbsp; Thanks for your patience.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 13:27:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-I-assign-a-style-by-using-a-quot-class-quot-defined-in-Proc/m-p/748115#M25077</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2021-06-15T13:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can I assign a style by using a "class" defined in Proc Template?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-I-assign-a-style-by-using-a-quot-class-quot-defined-in-Proc/m-p/748116#M25078</link>
      <description>&lt;P&gt;Thanks, and sorry, I complain quietly about the inability of others to write proper questions, and then I fail to do so myself.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 13:37:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-I-assign-a-style-by-using-a-quot-class-quot-defined-in-Proc/m-p/748116#M25078</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2021-06-15T13:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can I assign a style by using a "class" defined in Proc Template?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-I-assign-a-style-by-using-a-quot-class-quot-defined-in-Proc/m-p/748123#M25079</link>
      <description>&lt;P&gt;I found this paper:&amp;nbsp;&lt;A href="https://support.sas.com/resources/papers/proceedings/proceedings/sugi26/p002-26.pdf" target="_blank" rel="noopener"&gt;SUGI 26: Changes &amp;amp; Enhancements for ODS by Example (through V8.2) (sas.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This article:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-font-size-for-all-quot-PROC-ODSTEXT-quot-text/td-p/276839" target="_blank"&gt;Solved: Change font size for all "PROC ODSTEXT" text - SAS Support Communities&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 14:27:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-I-assign-a-style-by-using-a-quot-class-quot-defined-in-Proc/m-p/748123#M25079</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2021-06-15T14:27:20Z</dc:date>
    </item>
  </channel>
</rss>

