<?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: Trouble using Traffic lighting with Across Variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Trouble-using-Traffic-lighting-with-Across-Variable/m-p/673766#M202743</link>
    <description>&lt;P&gt;You wrote:&amp;nbsp;&lt;STRONG&gt;"&lt;SPAN&gt;I run this code and I get no formatting beneath the dates, and an additional column for score on the right which I do not want. "&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please post your output and the output you expected.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jul 2020 15:48:01 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2020-07-31T15:48:01Z</dc:date>
    <item>
      <title>Trouble using Traffic lighting with Across Variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trouble-using-Traffic-lighting-with-Across-Variable/m-p/673741#M202733</link>
      <description>&lt;P&gt;I have a two data sets (one for each date) with the same variables, including general state and county info (which does not change), date, and a score value.&amp;nbsp; I want to create a report from the combined set which groups by state and county, and has the date values (2 of them so far) going across with the score values below each.&amp;nbsp; The scores are AS IS in the data, no summing.&amp;nbsp; I also want to format the score values according to the value, which I have in a saved format.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I run this code and I get no formatting beneath the dates, and an additional column for score on the right which I do not want.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=CNTY_TREND_FINAL nowd;
columns  state_cd state_name county_name FIPS DATE score;
define state_cd / group ;
define state_name /group ;
define county_name /group ;
define FIPS/ group ;
define DATE/across order=data 'Date of Data'; 
define score   / analysis   format=missing. style(column)={background=colorflag.};
run;quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jul 2020 15:11:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trouble-using-Traffic-lighting-with-Across-Variable/m-p/673741#M202733</guid>
      <dc:creator>RandoDando</dc:creator>
      <dc:date>2020-07-31T15:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble using Traffic lighting with Across Variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trouble-using-Traffic-lighting-with-Across-Variable/m-p/673746#M202735</link>
      <description>&lt;P&gt;You have not provided sufficient information.&amp;nbsp; for example, your proc format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for starters, check this out&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.lexjansen.com/wuss/2006/tutorials/TUT-Carpenter.pdf" target="_blank"&gt;https://www.lexjansen.com/wuss/2006/tutorials/TUT-Carpenter.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 15:20:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trouble-using-Traffic-lighting-with-Across-Variable/m-p/673746#M202735</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2020-07-31T15:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble using Traffic lighting with Across Variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trouble-using-Traffic-lighting-with-Across-Variable/m-p/673753#M202738</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format ;
value missing . = "No Data Available";
run;

proc format;
value colorflag 1='BILG'
2='gold'
3='orange'
4='VIYPK'
0='White';
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jul 2020 15:31:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trouble-using-Traffic-lighting-with-Across-Variable/m-p/673753#M202738</guid>
      <dc:creator>RandoDando</dc:creator>
      <dc:date>2020-07-31T15:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble using Traffic lighting with Across Variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trouble-using-Traffic-lighting-with-Across-Variable/m-p/673766#M202743</link>
      <description>&lt;P&gt;You wrote:&amp;nbsp;&lt;STRONG&gt;"&lt;SPAN&gt;I run this code and I get no formatting beneath the dates, and an additional column for score on the right which I do not want. "&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please post your output and the output you expected.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 15:48:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trouble-using-Traffic-lighting-with-Across-Variable/m-p/673766#M202743</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-07-31T15:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble using Traffic lighting with Across Variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trouble-using-Traffic-lighting-with-Across-Variable/m-p/673773#M202746</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Usually, when you use ACROSS, you use a comma operator, as shown here using SASHELP.CLASS. Notice the difference between the way the 2 different reports look:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1596210590971.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47843i1EC93728F456428A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1596210590971.png" alt="Cynthia_sas_0-1596210590971.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you didn't post your data, no one can test or correct your code without making some fake data. However, if I build on my second report, with a user defined format, the format works for me.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_1-1596210860510.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47844i9B13BD8A466CECF8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_1-1596210860510.png" alt="Cynthia_sas_1-1596210860510.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; In order to code the format, I did need to have some idea of what the values for HEIGHT would be once they were nested underneath each unique value for the SEX variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 15:55:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trouble-using-Traffic-lighting-with-Across-Variable/m-p/673773#M202746</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-07-31T15:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble using Traffic lighting with Across Variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trouble-using-Traffic-lighting-with-Across-Variable/m-p/673777#M202750</link>
      <description>&lt;P&gt;That's it! I knew it was something simple, and I apologize for not being clear enough about my output. Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=CNTY_TREND_FINAL nowd;
columns  state_cd state_name county_name FIPS DATE, score;
define state_cd / group ;
define state_name /group ;
define county_name /group ;
define FIPS/ group ;
define DATE/across order=data 'Date of Data'; 
define score   / analysis   format=missing. style(column)={background=colorflag.};
run;quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jul 2020 16:04:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trouble-using-Traffic-lighting-with-Across-Variable/m-p/673777#M202750</guid>
      <dc:creator>RandoDando</dc:creator>
      <dc:date>2020-07-31T16:04:04Z</dc:date>
    </item>
  </channel>
</rss>

