<?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: Comparing Column Using Compute in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203679#M4562</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure it is actually 1, not just SAS hiding a tiny fraction behind the scenes, e.g. 1.0000000000000001.&amp;nbsp;&amp;nbsp; This sometimes happens on calculations.&amp;nbsp; Try:&lt;/P&gt;&lt;P&gt;if &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;0.99 &amp;lt; growthDeclineColumn &amp;lt; 1.001 then...;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if int(growthDeclineColumn) = 1 then...;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jul 2015 15:01:37 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2015-07-15T15:01:37Z</dc:date>
    <item>
      <title>Comparing Column Using Compute</title>
      <link>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203678#M4561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Comparing Column Using Compute&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif;"&gt;For some reason the value of growthDeclineColumn is not recognizing as 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif;"&gt;In a compute block.&amp;nbsp; I’m using the logic.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; background: white;"&gt;if growthDeclineColumn eq &lt;STRONG&gt;1&lt;/STRONG&gt; then call define(_col_,'style','style={font_weight=bold}');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; background: white;"&gt;In the datastep I set &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; background: white;"&gt;growthDeclineColumn = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; background: white;"&gt;Am I missing something here that is not allowing the value to be defined as 1?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; font-size: 11.0pt; font-family: 'Arial',sans-serif;"&gt;I included a screenshot of the report without the compute block working.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11463i2811934DA5C5C2A5/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="growth.png" title="growth.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 14:54:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203678#M4561</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2015-07-15T14:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Column Using Compute</title>
      <link>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203679#M4562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure it is actually 1, not just SAS hiding a tiny fraction behind the scenes, e.g. 1.0000000000000001.&amp;nbsp;&amp;nbsp; This sometimes happens on calculations.&amp;nbsp; Try:&lt;/P&gt;&lt;P&gt;if &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;0.99 &amp;lt; growthDeclineColumn &amp;lt; 1.001 then...;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if int(growthDeclineColumn) = 1 then...;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 15:01:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203679#M4562</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-07-15T15:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Column Using Compute</title>
      <link>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203680#M4563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried both with no luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 16:00:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203680#M4563</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2015-07-15T16:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Column Using Compute</title>
      <link>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203681#M4564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is the full code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data all;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; /*length GENDER_DESC $ 34;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; length ACADEMIC_PERIOD_DESC $ 9;*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; input GENDER_DESC $34. ACADEMIC_PERIOD_DESC $10. n growthDeclineColumn perGrowthDeclineColumn;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; datalines;&lt;/P&gt;&lt;P&gt;data all;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; infile datalines dsd;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; input GENDER_DESC : $34. ACADEMIC_PERIOD_DESC : $10. n growthDeclineColumn perGrowthDeclineColumn;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; datalines;&lt;/P&gt;&lt;P&gt;Female,Fall 2010,18525.00,0,0&lt;/P&gt;&lt;P&gt;Female,Fall 2011,18345.00,0,0&lt;/P&gt;&lt;P&gt;Female,Fall 2012,18097.00,0,0&lt;/P&gt;&lt;P&gt;Female,Fall 2013,17792.00,0,0&lt;/P&gt;&lt;P&gt;Female,Fall 2014,17755.00,0,0&lt;/P&gt;&lt;P&gt;Male,Fall 2010,13312.00,0,0&lt;/P&gt;&lt;P&gt;Male,Fall 2011,13288.00,0,0&lt;/P&gt;&lt;P&gt;Male,Fall 2012,13391.00,0,0&lt;/P&gt;&lt;P&gt;Male,Fall 2013,13133.00,0,0&lt;/P&gt;&lt;P&gt;Male,Fall 2014,13019.00,0,0&lt;/P&gt;&lt;P&gt;N/R,Fall 2010,466.00,0,0&lt;/P&gt;&lt;P&gt;N/R,Fall 2011,266.00,0,0&lt;/P&gt;&lt;P&gt;N/R,Fall 2012,264.00,0,0&lt;/P&gt;&lt;P&gt;N/R,Fall 2013,363.00,0,0&lt;/P&gt;&lt;P&gt;N/R,Fall 2014,389.00,0,0&lt;/P&gt;&lt;P&gt;Total,Fall 2010,32303.00,0,0&lt;/P&gt;&lt;P&gt;Total,Fall 2011,31899.00,0,0&lt;/P&gt;&lt;P&gt;Total,Fall 2012,31752.00,0,0&lt;/P&gt;&lt;P&gt;Total,Fall 2013,31288.00,0,0&lt;/P&gt;&lt;P&gt;Total,Fall 2014,31163.00,0,0&lt;/P&gt;&lt;P&gt;Headcount Growth/(Decline),Fall 2010,.,1,0&lt;/P&gt;&lt;P&gt;Headcount Growth/(Decline),Fall 2011,-404.00,1,0&lt;/P&gt;&lt;P&gt;Headcount Growth/(Decline),Fall 2012,-147.00,1,0&lt;/P&gt;&lt;P&gt;Headcount Growth/(Decline),Fall 2013,-464.00,1,0&lt;/P&gt;&lt;P&gt;Headcount Growth/(Decline),Fall 2014,-125.00,1,0&lt;/P&gt;&lt;P&gt;% Growth/(Decline) over prior Fall,Fall 2010,.,0,1&lt;/P&gt;&lt;P&gt;% Growth/(Decline) over prior Fall,Fall 2011,-0.01,0,1&lt;/P&gt;&lt;P&gt;% Growth/(Decline) over prior Fall,Fall 2012,-0.00,0,1&lt;/P&gt;&lt;P&gt;% Growth/(Decline) over prior Fall,Fall 2013,-0.01,0,1&lt;/P&gt;&lt;P&gt;% Growth/(Decline) over prior Fall,Fall 2014,-0.00,0,1&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=all;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/************start report output***********/&lt;/P&gt;&lt;P&gt;proc report data=all missing;&lt;/P&gt;&lt;P&gt;column (gender_desc growthDeclineColumn perGrowthDeclineColumn academic_period_desc, n);&lt;/P&gt;&lt;P&gt;define gender_desc / group&amp;nbsp; '' order=data;&lt;/P&gt;&lt;P&gt;define growthDeclineColumn / group '' order = data;&lt;/P&gt;&lt;P&gt;define perGrowthDeclineColumn / group '' order = data;&lt;/P&gt;&lt;P&gt;define academic_period_desc / across '' order=data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define n / analysis sum '' FORMAT=comma8.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;compute gender_desc;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if growthDeclineColumn eq 1 then call define(_col_,'style','style={font_weight=bold}');&lt;/P&gt;&lt;P&gt;&amp;nbsp; if perGrowthDeclineColumn eq 1 then call define(_col_,'style','style={font_weight=bold}');&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 17:17:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203681#M4564</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2015-07-15T17:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Column Using Compute</title>
      <link>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203682#M4565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;compute gender_desc;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*if growthDeclineColumn = 1 then do; (does not work)*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if gender_desc = 'Female' then do;&amp;nbsp; /*(works)*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call define(_col_,'style','style={font_weight=bold}');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if perGrowthDeclineColumn eq 1 then call define(_col_,'style','style={font_weight=bold}');&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;Not sure what is special about my number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 17:42:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203682#M4565</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2015-07-15T17:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Column Using Compute</title>
      <link>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203683#M4566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe my number is being treated as a character in a wacky format.&amp;nbsp; I did a ne = ‘a’ and got a result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 17:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203683#M4566</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2015-07-15T17:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Column Using Compute</title>
      <link>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203684#M4567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;compute gender_desc;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if growthDeclineColumn = . then &lt;/P&gt;&lt;P&gt;&amp;nbsp; call define(_col_,'style','style={font_weight=bold}');&lt;/P&gt;&lt;P&gt;&amp;nbsp; if perGrowthDeclineColumn eq 1 then call define(_col_,'style','style={font_weight=bold}');&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value of &lt;SPAN style="font-size: 13.3333330154419px;"&gt;growthDeclineColumn is null this bolds.&amp;nbsp;&amp;nbsp; This is&amp;nbsp; crazy, is there a work around for this bug?&amp;nbsp; Note I'm using 9.2.&amp;nbsp; The bug occurs in enterprise guide.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 17:59:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203684#M4567</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2015-07-15T17:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Column Using Compute</title>
      <link>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203685#M4568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its not something like:&lt;/P&gt;&lt;P&gt;if growthDeclineColumn = 1.00&lt;/P&gt;&lt;P&gt;Can't tell from the data as not at work now, can have a look tomorrow see if it does the same thing in SAS 9.3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 18:04:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203685#M4568</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-07-15T18:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Column Using Compute</title>
      <link>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203686#M4569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial',sans-serif; color: black; background: white;"&gt;The bug is that compute only lets you compare on the column following the word compute.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 18:17:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203686#M4569</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2015-07-15T18:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Column Using Compute</title>
      <link>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203687#M4570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Helvetica, sans-serif; background: white;"&gt;What I want to do is format the value of only one other column based on the value of another.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 18:20:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203687#M4570</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2015-07-15T18:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Column Using Compute</title>
      <link>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203688#M4571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the bug explanation: &lt;A __default_attr="46462" __jive_macro_name="thread" class="jive_macro jive_macro_thread active_link" href="https://communities.sas.com/" modifiedtitle="true" title="PROC REPORT - conditional formatting working for all but one column"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Somewhere in the middle of the doc:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;A class="jive-link-external-small" href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000146851.htm" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;Base SAS(R) 9.2 Procedures Guide&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;If a compute block is associated with a report item, then PROC REPORT executes the compute block on every row of the report when it comes to the column for that item. The value of a computed variable in any row of a report is the last value assigned to that variable during that execution of the DATA step statements in the compute block. PROC REPORT assigns values to the columns in a row of a report from left to right. &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Consequently, you cannot base the calculation of a computed variable on any variable that appears to its right in the report.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 18:30:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203688#M4571</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2015-07-15T18:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Column Using Compute</title>
      <link>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203689#M4572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this is right (what you want).&amp;nbsp; Since the variables used in the COMPUTE block comparison are GROUP you need to HOLD there values in temporary variables that do "become missing".&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; all;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;infile&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;datalines&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;dsd&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; GENDER_DESC : &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;$34.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; ACADEMIC_PERIOD_DESC : &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;$10.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; n growthDeclineColumn perGrowthDeclineColumn;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;datalines&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffc0;"&gt;Female,Fall 2010,18525.00,0,0&lt;BR /&gt;Female,Fall 2011,18345.00,0,0&lt;BR /&gt;Female,Fall 2012,18097.00,0,0&lt;BR /&gt;Female,Fall 2013,17792.00,0,0&lt;BR /&gt;Female,Fall 2014,17755.00,0,0&lt;BR /&gt;Male,Fall 2010,13312.00,0,0&lt;BR /&gt;Male,Fall 2011,13288.00,0,0&lt;BR /&gt;Male,Fall 2012,13391.00,0,0&lt;BR /&gt;Male,Fall 2013,13133.00,0,0&lt;BR /&gt;Male,Fall 2014,13019.00,0,0&lt;BR /&gt;N/R,Fall 2010,466.00,0,0&lt;BR /&gt;N/R,Fall 2011,266.00,0,0&lt;BR /&gt;N/R,Fall 2012,264.00,0,0&lt;BR /&gt;N/R,Fall 2013,363.00,0,0&lt;BR /&gt;N/R,Fall 2014,389.00,0,0&lt;BR /&gt;Total,Fall 2010,32303.00,0,0&lt;BR /&gt;Total,Fall 2011,31899.00,0,0&lt;BR /&gt;Total,Fall 2012,31752.00,0,0&lt;BR /&gt;Total,Fall 2013,31288.00,0,0&lt;BR /&gt;Total,Fall 2014,31163.00,0,0&lt;BR /&gt;Headcount Growth/(Decline),Fall 2010,.,1,0&lt;BR /&gt;Headcount Growth/(Decline),Fall 2011,-404.00,1,0&lt;BR /&gt;Headcount Growth/(Decline),Fall 2012,-147.00,1,0&lt;BR /&gt;Headcount Growth/(Decline),Fall 2013,-464.00,1,0&lt;BR /&gt;Headcount Growth/(Decline),Fall 2014,-125.00,1,0&lt;BR /&gt;% Growth/(Decline) over prior Fall,Fall 2010,.,0,1&lt;BR /&gt;% Growth/(Decline) over prior Fall,Fall 2011,-0.01,0,1&lt;BR /&gt;% Growth/(Decline) over prior Fall,Fall 2012,-0.00,0,1&lt;BR /&gt;% Growth/(Decline) over prior Fall,Fall 2013,-0.01,0,1&lt;BR /&gt;% Growth/(Decline) over prior Fall,Fall 2014,-0.00,0,1&lt;BR /&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;print&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=all;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #ffffff;"&gt;/************start report output***********/&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;report&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=all &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;missing&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;column&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; (gender_desc growthDeclineColumn perGrowthDeclineColumn academic_period_desc, n);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;define&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; gender_desc / &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;group&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;''&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;order&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=data;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;define&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; growthDeclineColumn / &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;group&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;''&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;order&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; = data;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;define&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; perGrowthDeclineColumn / &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;group&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;''&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;order&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; = data;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;define&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; academic_period_desc / &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;across&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;''&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;order&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=data;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;define&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;n&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; / &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;analysis&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;sum&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;''&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;FORMAT&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;comma8.&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;compute&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;before&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; growthDeclineColumn;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; h1 = growthdeclinecolumn;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;endcomp&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;compute&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;before&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; perGrowthDeclineColumn;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; h2 = perGrowthDeclineColumn;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;endcomp&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;compute&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; gender_desc;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; h1 eq &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; call define(_row_,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'style'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'style={font_weight=bold}'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; h2 eq &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; call define(_col_,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'style'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'style={font_weight=bold}'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;endcomp&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;IMG alt="Capture.PNG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/11173_Capture.PNG" width="450" /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 19:11:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Comparing-Column-Using-Compute/m-p/203689#M4572</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-07-15T19:11:38Z</dc:date>
    </item>
  </channel>
</rss>

