<?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: Proc Report Set a Column Bold based on another Column in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Set-a-Column-Bold-based-on-another-Column/m-p/258750#M49906</link>
    <description>Sorry, I don't think I get the point. So how do I compute/set variable A based on Variable B? Thanks.</description>
    <pubDate>Thu, 24 Mar 2016 08:06:19 GMT</pubDate>
    <dc:creator>anthony28852</dc:creator>
    <dc:date>2016-03-24T08:06:19Z</dc:date>
    <item>
      <title>Proc Report Set a Column Bold based on another Column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Set-a-Column-Bold-based-on-another-Column/m-p/258745#M49902</link>
      <description>&lt;P&gt;I have a Proc Report that goes like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc Report Data=Table1;&lt;/P&gt;&lt;P&gt;Column A B C;&lt;/P&gt;&lt;P&gt;compute A;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;if B eq 0 then call define(_col_,"style","style={font_weight=bold}");&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it doesn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The log says that B is uninitialized. Is there a way to solve it? Thanks before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 07:47:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Set-a-Column-Bold-based-on-another-Column/m-p/258745#M49902</guid>
      <dc:creator>anthony28852</dc:creator>
      <dc:date>2016-03-24T07:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Set a Column Bold based on another Column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Set-a-Column-Bold-based-on-another-Column/m-p/258749#M49905</link>
      <description>proc report is from left to right .
&lt;PRE&gt;

compute A;
----&amp;gt;
compute B;
or
compute C;
&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Mar 2016 08:00:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Set-a-Column-Bold-based-on-another-Column/m-p/258749#M49905</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-03-24T08:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Set a Column Bold based on another Column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Set-a-Column-Bold-based-on-another-Column/m-p/258750#M49906</link>
      <description>Sorry, I don't think I get the point. So how do I compute/set variable A based on Variable B? Thanks.</description>
      <pubDate>Thu, 24 Mar 2016 08:06:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Set-a-Column-Bold-based-on-another-Column/m-p/258750#M49906</guid>
      <dc:creator>anthony28852</dc:creator>
      <dc:date>2016-03-24T08:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Set a Column Bold based on another Column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Set-a-Column-Bold-based-on-another-Column/m-p/258758#M49910</link>
      <description>&lt;P&gt;proc reports reads the variable from left to right, when computing A, B has no value. You have to clone B:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc Report Data=Table1;
  columns B=_B A B C;

  define _b / noprint;

  compute A;
     if _b eq 0 then call define(_col_,"style","style={font_weight=bold}");
  endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Mar 2016 09:10:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Set-a-Column-Bold-based-on-another-Column/m-p/258758#M49910</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2016-03-24T09:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Set a Column Bold based on another Column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Set-a-Column-Bold-based-on-another-Column/m-p/258760#M49911</link>
      <description>&lt;PRE&gt;
compute block is calculated from left to right.
So when you compute it at A , SAS can't know the value of B, because B is after A.
Change :
compute A;
----&amp;gt;
compute B;
or
compute C;

&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Mar 2016 09:13:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Set-a-Column-Bold-based-on-another-Column/m-p/258760#M49911</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-03-24T09:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Set a Column Bold based on another Column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Set-a-Column-Bold-based-on-another-Column/m-p/258767#M49914</link>
      <description>&lt;P&gt;I try to do like below (re-arranging the column)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc Report Data=Table1;&lt;/P&gt;&lt;P&gt;Column B A C;&lt;/P&gt;&lt;P&gt;compute A:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;if B eq 0 then call define(_col_,"style","style={font_weight=bold}");&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And still unsuccesful, can you let me know what did I miss out? Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 10:02:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Set-a-Column-Bold-based-on-another-Column/m-p/258767#M49914</guid>
      <dc:creator>anthony28852</dc:creator>
      <dc:date>2016-03-24T10:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Set a Column Bold based on another Column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Set-a-Column-Bold-based-on-another-Column/m-p/259000#M50025</link>
      <description>&lt;PRE&gt;
You are defining  _COL_ ,so you can only highlight A not B.
Change it as 

compute B:
&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Mar 2016 00:50:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Set-a-Column-Bold-based-on-another-Column/m-p/259000#M50025</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-03-25T00:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Set a Column Bold based on another Column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Set-a-Column-Bold-based-on-another-Column/m-p/259008#M50028</link>
      <description>&lt;P&gt;Hi: for a concrete example of how PROC REPORT works, review this related posting:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://communities.sas.com/t5/Base-SAS-Programming/PROC-REPORT-SAS-log-reporting-dataset-variables-are/m-p/258959#U258959" target="_blank"&gt;http://communities.sas.com/t5/Base-SAS-Programming/PROC-REPORT-SAS-log-reporting-dataset-variables-are/m-p/258959#U258959&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It has some pseudo-code examples of PROC REPORT's left-to-right processing and how a COMPOUND name has to be used for numeric variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2016 02:16:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Set-a-Column-Bold-based-on-another-Column/m-p/259008#M50028</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-03-25T02:16:45Z</dc:date>
    </item>
  </channel>
</rss>

