<?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 Re: Defining Multiple Style Formats for use in Proc Print in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Defining-Multiple-Style-Formats-for-use-in-Proc-Print/m-p/252117#M15290</link>
    <description>&lt;P&gt;Yes, Thanx for the assist. I setup some additional formats and they worked great!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanx again,&lt;/P&gt;
&lt;P&gt;Jim Glover&lt;/P&gt;</description>
    <pubDate>Wed, 24 Feb 2016 18:11:01 GMT</pubDate>
    <dc:creator>Gloveman71</dc:creator>
    <dc:date>2016-02-24T18:11:01Z</dc:date>
    <item>
      <title>Defining Multiple Style Formats for use in Proc Print</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Defining-Multiple-Style-Formats-for-use-in-Proc-Print/m-p/251614#M15287</link>
      <description>&lt;P&gt;I currently use SAS 9.4 in a Grid.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer the the listed link,&amp;nbsp; my question pertains to this:&amp;nbsp;&lt;STRONG&gt; &lt;A href="http://support.sas.com/kb/23/353.html" target="_blank"&gt;http://support.sas.com/kb/23/353.html&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see the Proc Print example,&amp;nbsp; Can you define multiple format styles for use in Proc Print on different variables?&amp;nbsp; I would like to use the background style format on different variables based on the value of the variable.&amp;nbsp; I have also listed the example below for easier explanation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;   ods html body='temp.html';

   proc format;
     value temp 11=red
                12=purple
                13=orange
                14=pink
                16=yellow
                other=blue;
   run;

   ods html body='temp.html';

   proc print data=sashelp.class ;
     var age / style={background=temp.};
     var sex height weight;
   run;

   ods html close;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope I have explained this properly,&lt;/P&gt;
&lt;P&gt;Thanx for any help,&lt;/P&gt;
&lt;P&gt;Jim Glover&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 19:35:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Defining-Multiple-Style-Formats-for-use-in-Proc-Print/m-p/251614#M15287</guid>
      <dc:creator>Gloveman71</dc:creator>
      <dc:date>2016-02-22T19:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Defining Multiple Style Formats for use in Proc Print</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Defining-Multiple-Style-Formats-for-use-in-Proc-Print/m-p/251625#M15288</link>
      <description>&lt;P&gt;Is this what you want?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods html file="test.html";

proc format;
   value agef
      11-13='red'
      13&amp;lt;-high='cyan';
	value $sexf
		M='yellow'
		F='pink';
      

proc print data=sashelp.class;
   var name;
   var age / style={background=agef.};
   var sex / style={background=$sexf.};
   var height / style={background=black color=white};
   var weight / style={background=black color=yellow};
   run;
ods html close;
&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Feb 2016 20:41:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Defining-Multiple-Style-Formats-for-use-in-Proc-Print/m-p/251625#M15288</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2016-02-22T20:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Defining Multiple Style Formats for use in Proc Print</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Defining-Multiple-Style-Formats-for-use-in-Proc-Print/m-p/252117#M15290</link>
      <description>&lt;P&gt;Yes, Thanx for the assist. I setup some additional formats and they worked great!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanx again,&lt;/P&gt;
&lt;P&gt;Jim Glover&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2016 18:11:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Defining-Multiple-Style-Formats-for-use-in-Proc-Print/m-p/252117#M15290</guid>
      <dc:creator>Gloveman71</dc:creator>
      <dc:date>2016-02-24T18:11:01Z</dc:date>
    </item>
  </channel>
</rss>

