<?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: Call define in proc report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Call-define-in-proc-report/m-p/460279#M20931</link>
    <description>Thanks Cynthia</description>
    <pubDate>Sun, 06 May 2018 04:17:41 GMT</pubDate>
    <dc:creator>Ajayvit</dc:creator>
    <dc:date>2018-05-06T04:17:41Z</dc:date>
    <item>
      <title>Call define in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Call-define-in-proc-report/m-p/460235#M20927</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here i am using prdsale data set. I am trying to color the quarter column on basis of their number. Ex 1=pink 2=yellow 3=green 4=red.&lt;/P&gt;&lt;P&gt;below is my code but it is not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data=sashelp.prdsale;&lt;BR /&gt;column product quarter;&lt;BR /&gt;/*define quarter/ group;*/&lt;BR /&gt;COMPUTE quarter;&lt;BR /&gt;IF quarter &amp;gt;3&lt;BR /&gt;THEN CALL DEFINE(_col_, "style", "STYLE=[BACKGROUND=RED]");&lt;BR /&gt;ENDCOMP;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sat, 05 May 2018 08:13:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Call-define-in-proc-report/m-p/460235#M20927</guid>
      <dc:creator>Ajayvit</dc:creator>
      <dc:date>2018-05-05T08:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Call define in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Call-define-in-proc-report/m-p/460240#M20928</link>
      <description>&lt;P&gt;By default, numeric variable is ANALYSIS usage, therefore refer to it by xxx.sum .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=sashelp.prdsale nowd;
column product quarter ;
/*define quarter/ group;*/
COMPUTE quarter;
IF quarter.sum &amp;gt;3
THEN CALL DEFINE(_col_, "style", "STYLE=[BACKGROUND=RED]");
ENDCOMP;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 05 May 2018 11:07:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Call-define-in-proc-report/m-p/460240#M20928</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-05-05T11:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Call define in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Call-define-in-proc-report/m-p/460242#M20929</link>
      <description>&lt;P&gt;Thanks Ksharp&lt;/P&gt;</description>
      <pubDate>Sat, 05 May 2018 11:57:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Call-define-in-proc-report/m-p/460242#M20929</guid>
      <dc:creator>Ajayvit</dc:creator>
      <dc:date>2018-05-05T11:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Call define in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Call-define-in-proc-report/m-p/460266#M20930</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You can also accomplish what you want to do with a format, no CALL DEFINE needed.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
  value qfmt 1='pink'
             2='yellow'
             3='green'
             4='red';
run;
  
proc report data=sashelp.prdsale;
column product quarter;
define quarter /
       style(column)={background=qfmt.};
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 05 May 2018 21:37:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Call-define-in-proc-report/m-p/460266#M20930</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-05-05T21:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Call define in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Call-define-in-proc-report/m-p/460279#M20931</link>
      <description>Thanks Cynthia</description>
      <pubDate>Sun, 06 May 2018 04:17:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Call-define-in-proc-report/m-p/460279#M20931</guid>
      <dc:creator>Ajayvit</dc:creator>
      <dc:date>2018-05-06T04:17:41Z</dc:date>
    </item>
  </channel>
</rss>

