<?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: I couldn't get colour in proc report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-couldn-t-get-colour-in-proc-report/m-p/554187#M154165</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/209685"&gt;@thanikondharish&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I wrote misspelled sorry, coming to point when I run proc report I am not&lt;BR /&gt;getting colour&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You wrote that already, but this doesn't answer my question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How many observations have flag = 11?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Adding a define-statement for the variable flag seems to solve the error-message:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;define flag / display;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 26 Apr 2019 07:52:11 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2019-04-26T07:52:11Z</dc:date>
    <item>
      <title>I couldn't get colour in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-couldn-t-get-colour-in-proc-report/m-p/554171#M154155</link>
      <description>Data ex;&lt;BR /&gt;Set sashelp.class ;&lt;BR /&gt;If age in (11,12) then flag=1 ;&lt;BR /&gt;If age in (13,14) the flag=2 ;&lt;BR /&gt;Else flag=3 ;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;proc report data=ex;&lt;BR /&gt;Compute flag;&lt;BR /&gt;If flag=11 then do;&lt;BR /&gt;Call define (_row_,"style","style=[background=red]");&lt;BR /&gt;End;&lt;BR /&gt;Endcomp;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;If run the above program I not getting colour.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Apr 2019 06:35:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-couldn-t-get-colour-in-proc-report/m-p/554171#M154155</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2019-04-26T06:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: I couldn't get colour in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-couldn-t-get-colour-in-proc-report/m-p/554179#M154161</link>
      <description>&lt;P&gt;When i execute the code posted i get the following warning:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;26         Data ex;
27         Set sashelp.class ;
28         If age in (11,12) then flag=1 ;
29         If age in (13,14) the flag=2 ;
                             ___
                             1
WARNING 1-322: Assuming the symbol THEN was misspelled as the.&lt;/PRE&gt;
&lt;P&gt;After fixing this, there is a note, that indicates another error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;33         proc report data=ex;
34         Compute flag;
35         If flag=1 then do;
36         Call define (_row_,"style","style=[background=red]");
37         End;
38         Endcomp;
39         Run;

NOTE: Variable flag is uninitialized.
NOTE: There were 19 observations read from the data set WORK.EX.
NOTE: PROZEDUR REPORT used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can only recommend to use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options dsoptions=note2err;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To turn all unexpected notes into error-messages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now back to your problem: what do you want to achieve?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 07:08:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-couldn-t-get-colour-in-proc-report/m-p/554179#M154161</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-04-26T07:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: I couldn't get colour in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-couldn-t-get-colour-in-proc-report/m-p/554180#M154162</link>
      <description>I wrote misspelled sorry, coming to point when I run proc report I am not&lt;BR /&gt;getting colour&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Apr 2019 07:12:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-couldn-t-get-colour-in-proc-report/m-p/554180#M154162</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2019-04-26T07:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: I couldn't get colour in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-couldn-t-get-colour-in-proc-report/m-p/554187#M154165</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/209685"&gt;@thanikondharish&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I wrote misspelled sorry, coming to point when I run proc report I am not&lt;BR /&gt;getting colour&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You wrote that already, but this doesn't answer my question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How many observations have flag = 11?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Adding a define-statement for the variable flag seems to solve the error-message:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;define flag / display;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Apr 2019 07:52:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-couldn-t-get-colour-in-proc-report/m-p/554187#M154165</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-04-26T07:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: I couldn't get colour in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-couldn-t-get-colour-in-proc-report/m-p/554240#M154177</link>
      <description>&lt;P&gt;&lt;SPAN&gt;If flag=11 then do;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;should be&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If flag=1 then do;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 13:08:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-couldn-t-get-colour-in-proc-report/m-p/554240#M154177</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-04-26T13:08:07Z</dc:date>
    </item>
  </channel>
</rss>

