<?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: Traffic Lighting percentages with PROC FORMAT in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Traffic-Lighting-percentages-with-PROC-FORMAT/m-p/1842#M816</link>
    <description>This is a known problem with V8.2, see SAS note 006311. PROC REPORT should work OK - if you can work out the different syntax!</description>
    <pubDate>Fri, 24 Nov 2006 15:58:25 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2006-11-24T15:58:25Z</dc:date>
    <item>
      <title>Traffic Lighting percentages with PROC FORMAT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Traffic-Lighting-percentages-with-PROC-FORMAT/m-p/1841#M815</link>
      <description>I am trying to highlight a column of percentages in my excel ODS output where values are below 97.5%.&lt;BR /&gt;
Here is my proc format code:&lt;BR /&gt;
&lt;BR /&gt;
PROC FORMAT;           &lt;BR /&gt;
  VALUE HILO&lt;BR /&gt;
  LOW-0.975 = 'RED'    &lt;BR /&gt;
  0.975-HIGH = 'GREEN';&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
Here is my proc print code:&lt;BR /&gt;
&lt;BR /&gt;
PROC PRINT DATA = _LAST_ HEADING = H LABEL SPLIT =' ' NOOBS;                                    &lt;BR /&gt;
   VAR VARN;                         &lt;BR /&gt;
   VAR CNT;&lt;BR /&gt;
   VAR COMMON;&lt;BR /&gt;
   VAR PCTG / STYLE = {BACKGROUND = HILO.};&lt;BR /&gt;
   VAR CDSMISS;  &lt;BR /&gt;
   VAR PTH;&lt;BR /&gt;
   VAR SEG; &lt;BR /&gt;
   VAR CFN;         &lt;BR /&gt;
RUN;                                                                      &lt;BR /&gt;
On my workstation I have PC SAS 9.1.3, which I have managed to use this with and have had no problems.&lt;BR /&gt;
On my mainframe I think version 8.2 is used. When I try to run the code on the mainframe I get the error message:&lt;BR /&gt;
"Wrong type of format for data type: HILO."&lt;BR /&gt;
&lt;BR /&gt;
Obviously it does not like comparing the values in my proc format to the percentage variable. I don't know how to make a proc format that will compare against a perentage in sas 8.2. Can anyone help??&lt;BR /&gt;
---------------------------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
I have found this note to say that this is a problem that was not fixed until 9.1 and that proc report should be used instead:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/unotes/SN/006/006311.html" target="_blank"&gt;http://support.sas.com/techsup/unotes/SN/006/006311.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
what a nuisance.

&lt;BR /&gt;
Message was edited by: The SAS Man at Nov 24, 2006 10:56 AM&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Nov 2006 12:43:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Traffic-Lighting-percentages-with-PROC-FORMAT/m-p/1841#M815</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-11-24T12:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Traffic Lighting percentages with PROC FORMAT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Traffic-Lighting-percentages-with-PROC-FORMAT/m-p/1842#M816</link>
      <description>This is a known problem with V8.2, see SAS note 006311. PROC REPORT should work OK - if you can work out the different syntax!</description>
      <pubDate>Fri, 24 Nov 2006 15:58:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Traffic-Lighting-percentages-with-PROC-FORMAT/m-p/1842#M816</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-11-24T15:58:25Z</dc:date>
    </item>
  </channel>
</rss>

