<?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: Changing color and styling for character variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Changing-color-and-styling-for-character-variables/m-p/343243#M78795</link>
    <description>&lt;P&gt;Search on lexjansen.com for papers by Cynthia Zender that show how to create stylish reports.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A href="http://support.sas.com/resources/papers/proceedings13/366-2013.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings13/366-2013.pdf&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Mar 2017 12:22:26 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-03-22T12:22:26Z</dc:date>
    <item>
      <title>Changing color and styling for character variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-color-and-styling-for-character-variables/m-p/343184#M78765</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to change color or make bold to character variable using proc format.&lt;/P&gt;&lt;P&gt;Please find below the code used.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data dsn;&lt;BR /&gt;length State County Community $10.;&lt;BR /&gt;input State $10.&lt;BR /&gt;County $9.&lt;BR /&gt;Community $8.&lt;BR /&gt;flag 2.&lt;BR /&gt;;&lt;BR /&gt;datalines;&lt;BR /&gt;California Calveras Wallace 1&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc format cntlout=colormodel(keep=fmtname start end label type sexcl eexcl);&lt;BR /&gt;value $State 'California' = "fontWeight:bold;";&lt;BR /&gt;value flag 1 = "";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data colormodel(drop=T);&lt;BR /&gt;set colormodel(rename=(TYPE=T));&lt;BR /&gt;length TYPE $32;&lt;BR /&gt;if FMTNAME eq 'STATE' then TYPE = 'flag';&lt;BR /&gt;else TYPE = 't';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data colormodel;&lt;BR /&gt;format state $state.;&lt;BR /&gt;set dsn;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arnav&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 06:57:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-color-and-styling-for-character-variables/m-p/343184#M78765</guid>
      <dc:creator>apagote</dc:creator>
      <dc:date>2017-03-22T06:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Changing color and styling for character variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-color-and-styling-for-character-variables/m-p/343198#M78776</link>
      <description>&lt;P&gt;Text decoration is only possible in reporting procedures. There are numerous papers explaning anything relevant in detail.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 08:08:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-color-and-styling-for-character-variables/m-p/343198#M78776</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2017-03-22T08:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Changing color and styling for character variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-color-and-styling-for-character-variables/m-p/343221#M78787</link>
      <description>&lt;P&gt;That's not how proc format works. It acts as a recoding procedure with the rules being the input.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Style such as colour and font are not valid in a SAS dataset.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So what are you trying to do?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 10:05:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-color-and-styling-for-character-variables/m-p/343221#M78787</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-22T10:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Changing color and styling for character variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-color-and-styling-for-character-variables/m-p/343236#M78793</link>
      <description>&lt;P&gt;Yes I am trying to change Style such as colour and font&amp;nbsp; in a SAS dataset &amp;nbsp;to show in a web browser through SAS SNA and this browser is accessing this table and i need to do conditional highlighting&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 11:50:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-color-and-styling-for-character-variables/m-p/343236#M78793</guid>
      <dc:creator>apagote</dc:creator>
      <dc:date>2017-03-22T11:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Changing color and styling for character variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-color-and-styling-for-character-variables/m-p/343243#M78795</link>
      <description>&lt;P&gt;Search on lexjansen.com for papers by Cynthia Zender that show how to create stylish reports.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A href="http://support.sas.com/resources/papers/proceedings13/366-2013.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings13/366-2013.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 12:22:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-color-and-styling-for-character-variables/m-p/343243#M78795</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-22T12:22:26Z</dc:date>
    </item>
  </channel>
</rss>

