<?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: Text color turned blue without NOTE: in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Text-color-turned-blue-without-NOTE/m-p/815178#M321750</link>
    <description>It behaves the same in my SAS DMS and Studio:&lt;BR /&gt;&lt;BR /&gt;DMS version: 9.04.01M7P08052020&lt;BR /&gt;Studio version: 9.04.01M6P11072018</description>
    <pubDate>Thu, 26 May 2022 07:03:13 GMT</pubDate>
    <dc:creator>whymath</dc:creator>
    <dc:date>2022-05-26T07:03:13Z</dc:date>
    <item>
      <title>Text color turned blue without NOTE:</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Text-color-turned-blue-without-NOTE/m-p/815177#M321749</link>
      <description>&lt;P&gt;Hello eveybody. I am writing SAS program and I found this wired&amp;nbsp;&lt;SPAN&gt;phenomenon.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I submit code like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  set sashelp.class;

  select(name);
    when ('Alice','Jane');
    when ('John');
    other;
  end;
run;

%put this is test text;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;The color of %put statement is black:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="black.png" style="width: 786px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71787i3B2E1CE10C0A3263/image-size/large?v=v2&amp;amp;px=999" role="button" title="black.png" alt="black.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;If I just remove the comma between 'Alice' and 'Jane' and run this program again , the color of %put&amp;nbsp;statement is blue:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="blue.png" style="width: 774px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71788i3AF02B34842F928D/image-size/large?v=v2&amp;amp;px=999" role="button" title="blue.png" alt="blue.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Why the text color of&amp;nbsp;%put&amp;nbsp;statement turn blue without 'NOTE:' prefix?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Ps: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1. I have tried other syntax error but they all failed to turn text color of&amp;nbsp;%put&amp;nbsp;statement blue.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. If I delete "when ('John');",&amp;nbsp;text color of&amp;nbsp;%put&amp;nbsp;statement will always be black.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 06:57:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Text-color-turned-blue-without-NOTE/m-p/815177#M321749</guid>
      <dc:creator>whymath</dc:creator>
      <dc:date>2022-05-26T06:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Text color turned blue without NOTE:</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Text-color-turned-blue-without-NOTE/m-p/815178#M321750</link>
      <description>It behaves the same in my SAS DMS and Studio:&lt;BR /&gt;&lt;BR /&gt;DMS version: 9.04.01M7P08052020&lt;BR /&gt;Studio version: 9.04.01M6P11072018</description>
      <pubDate>Thu, 26 May 2022 07:03:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Text-color-turned-blue-without-NOTE/m-p/815178#M321750</guid>
      <dc:creator>whymath</dc:creator>
      <dc:date>2022-05-26T07:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Text color turned blue without NOTE:</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Text-color-turned-blue-without-NOTE/m-p/815180#M321752</link>
      <description>This is an interesting phenomenon.&lt;BR /&gt;&lt;BR /&gt;If I submit "options nonotes", I got black text by your code.&lt;BR /&gt;Is it some kind of bug that causes the NOTE flag to be turned on when the SYSERR value is 1012?</description>
      <pubDate>Thu, 26 May 2022 07:17:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Text-color-turned-blue-without-NOTE/m-p/815180#M321752</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2022-05-26T07:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Text color turned blue without NOTE:</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Text-color-turned-blue-without-NOTE/m-p/815226#M321781</link>
      <description>&lt;P&gt;Seems to be related to not having an operation after the WHEN.&lt;/P&gt;
&lt;P&gt;Note that is, with something after the when, generates a different error message and the macro put text is black.&lt;/P&gt;
&lt;PRE&gt;61   data _null_;
62      set sashelp.class;
63     select(name);
64       when ('Alice' 'Jane') Put "Name is" Name;
                       ------
                       388
                       76
65       when ('John') ;
         ----
         346
ERROR 388-185: Expecting an arithmetic operator.

ERROR 76-322: Syntax error, statement will be ignored.

ERROR 346-185: No executable statement preceding WHEN statement.

66       other;
67     end;
68   run;

NOTE: The SAS System stopped processing this step because of errors.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


69   %put this is test text;
this is test text
&lt;/PRE&gt;
&lt;P&gt;So I would guess that it has something to do with the particular class of error setting a property way in the background&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 14:26:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Text-color-turned-blue-without-NOTE/m-p/815226#M321781</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-05-26T14:26:07Z</dc:date>
    </item>
  </channel>
</rss>

