<?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: SAS syntax coloring in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-coloring/m-p/964353#M375582</link>
    <description>&lt;P&gt;I am sing SAS 9.4 (Enhanced editor). Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 15 Apr 2025 18:25:17 GMT</pubDate>
    <dc:creator>bussql</dc:creator>
    <dc:date>2025-04-15T18:25:17Z</dc:date>
    <item>
      <title>SAS syntax coloring</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-coloring/m-p/964351#M375580</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to see the syntax with automatic colors. But when I open a sas script, the automatic coloring syntax does not work (All texts are in black). For example, File -&amp;gt; Open program&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC IMPORT&lt;BR /&gt;DATAFILE="C:\Users\bussql\Downloads\erp_public_coefs_annual_240107.dta"&lt;BR /&gt;OUT=SASDatasetName&lt;BR /&gt;DBMS=dta REPLACE;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I type the command editor (File -&amp;gt; New program) then automatic coloring works properly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not know why. Your help to sort out this issue is appreciated. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 17:29:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-coloring/m-p/964351#M375580</guid>
      <dc:creator>bussql</dc:creator>
      <dc:date>2025-04-15T17:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS syntax coloring</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-coloring/m-p/964352#M375581</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/474835"&gt;@bussql&lt;/a&gt;! What is your coding environment and version? SAS Studio, SAS Enterprise Guide, or the SAS VS Code Extension?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 18:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-coloring/m-p/964352#M375581</guid>
      <dc:creator>Stu_SAS</dc:creator>
      <dc:date>2025-04-15T18:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS syntax coloring</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-coloring/m-p/964353#M375582</link>
      <description>&lt;P&gt;I am sing SAS 9.4 (Enhanced editor). Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 18:25:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-coloring/m-p/964353#M375582</guid>
      <dc:creator>bussql</dc:creator>
      <dc:date>2025-04-15T18:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS syntax coloring</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-coloring/m-p/964356#M375583</link>
      <description>&lt;P&gt;Quick follow-up question: When you say SAS 9.4, do you mean the SAS executable (i.e. SAS Enhanced Editor) like this?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Stu_SAS_0-1744741495288.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106261i2A708A768CD5421A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Stu_SAS_0-1744741495288.png" alt="Stu_SAS_0-1744741495288.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or Enterprise Guide?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Stu_SAS_0-1744741344653.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106260iF8143074A87BFC25/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Stu_SAS_0-1744741344653.png" alt="Stu_SAS_0-1744741344653.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 18:25:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-coloring/m-p/964356#M375583</guid>
      <dc:creator>Stu_SAS</dc:creator>
      <dc:date>2025-04-15T18:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS syntax coloring</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-coloring/m-p/964362#M375584</link>
      <description>&lt;P&gt;I am using SAS 9.4 (Enhanced editor). Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 19:06:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-coloring/m-p/964362#M375584</guid>
      <dc:creator>bussql</dc:creator>
      <dc:date>2025-04-15T19:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS syntax coloring</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-coloring/m-p/964365#M375586</link>
      <description>&lt;P&gt;Any chance your SAS program does not have a .sas extension?&amp;nbsp; In Display Manager (PC SAS), if I use File-&amp;gt; Open Program to open myprogram.txt it will not syntax highlight it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 19:33:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-coloring/m-p/964365#M375586</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2025-04-15T19:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS syntax coloring</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-coloring/m-p/964366#M375587</link>
      <description>&lt;P&gt;Thank you for your reply. But it is so strange to me. My script file has a *.sas extension, not .txt. The thing is when I copy the code lines and past them to a new editor window then the syntax colors look normally as expected.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 20:16:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-coloring/m-p/964366#M375587</guid>
      <dc:creator>bussql</dc:creator>
      <dc:date>2025-04-15T20:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS syntax coloring</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-coloring/m-p/964369#M375588</link>
      <description>&lt;P&gt;Triple check your filename.&lt;/P&gt;
&lt;P&gt;The second file's shown below has a space between the period and sas in the name.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1744748722808.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106263i7B8426B3FD18DD05/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1744748722808.png" alt="Tom_0-1744748722808.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 20:27:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-coloring/m-p/964369#M375588</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-04-15T20:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS syntax coloring</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-coloring/m-p/964396#M375593</link>
      <description>&lt;P&gt;I try several files but non of them works as expected. Attached file is one example.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 08:21:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-coloring/m-p/964396#M375593</guid>
      <dc:creator>bussql</dc:creator>
      <dc:date>2025-04-16T08:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS syntax coloring</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-coloring/m-p/964431#M375596</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As previously suggested by others, it appears the editor is not recognizing the program.&amp;nbsp; Since you mentioned that if you copy the code into a new program window it shows the Enhanced editor colors.&amp;nbsp; Have you tried saving that program and then opening the new one.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps there are some unusual characters in the original program that are preventing SAS from understanding the text.&amp;nbsp; &amp;nbsp;Thanks,&lt;/P&gt;
&lt;P&gt;Mary&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 14:08:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-coloring/m-p/964431#M375596</guid>
      <dc:creator>mharding</dc:creator>
      <dc:date>2025-04-16T14:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS syntax coloring</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-coloring/m-p/964442#M375597</link>
      <description>&lt;P&gt;That file looks fine to me.&lt;/P&gt;
&lt;P&gt;Try renaming it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is picture of it working fine on my machine.&lt;/P&gt;
&lt;P&gt;Also another example of a file that looks like it ends with .sas but really it has a non-breaking space at the end.&amp;nbsp; SAS also does not think that is a SAS program file.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1744815796705.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106286i3F348F4335A242BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1744815796705.png" alt="Tom_0-1744815796705.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 15:03:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-coloring/m-p/964442#M375597</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-04-16T15:03:37Z</dc:date>
    </item>
  </channel>
</rss>

