<?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: Error when reading editor file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-when-reading-editor-file/m-p/678217#M204678</link>
    <description>&lt;P&gt;You may also want to review&amp;nbsp;&lt;A href="http://support.sas.com/kb/64089" target="_blank" rel="noopener"&gt;Usage Note 64089: Frequently asked questions about preparing your site to use UTF-8 SAS® session encoding&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I suspect you have some kind of encoding issue going on&lt;/P&gt;</description>
    <pubDate>Thu, 20 Aug 2020 19:06:39 GMT</pubDate>
    <dc:creator>AMSAS</dc:creator>
    <dc:date>2020-08-20T19:06:39Z</dc:date>
    <item>
      <title>Error when reading editor file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-reading-editor-file/m-p/678083#M204622</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have trouble reading an editor file - can anyone identify what is happening? Thank you!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="udklip.png" style="width: 821px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48461i853FFF12797E3585/image-size/large?v=v2&amp;amp;px=999" role="button" title="udklip.png" alt="udklip.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 13:19:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-reading-editor-file/m-p/678083#M204622</guid>
      <dc:creator>Maria_decibel</dc:creator>
      <dc:date>2020-08-20T13:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error when reading editor file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-reading-editor-file/m-p/678094#M204626</link>
      <description>&lt;P&gt;Since you did not include anything about what was actually attempted we cannot tell what is actually happening.&lt;/P&gt;
&lt;P&gt;For LOG entries copy the from the log the entire data step&amp;nbsp; or procedure along with all notes, warnings and errors. Paste into the forum into a code box opened using the forum's &amp;lt;/&amp;gt; icon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code box preserves text formatting. And since it would be text we can copy and show suggested changes to code or easily highlight areas of concern. We can't do either with pictures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typically files that have .SAS extension are programs. So what are you doing to that program file?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 13:40:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-reading-editor-file/m-p/678094#M204626</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-08-20T13:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error when reading editor file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-reading-editor-file/m-p/678126#M204643</link>
      <description>&lt;P&gt;Try to open the file with some non-SAS editor, like notepad++ and check if some characters are damaged, retype it, save and try again to read into the sas editor.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 14:41:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-reading-editor-file/m-p/678126#M204643</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-08-20T14:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error when reading editor file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-reading-editor-file/m-p/678145#M204650</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/342433"&gt;@Maria_decibel&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was able to replicate your issue with a text file containing both a byte-order mark (BOM) at the beginning and an "illegal" combination of bytes (i.e., "illegal" for UTF-8 encoding) further down in the file. The Enhanced Editor did not open it and I also got these notes and the error message in the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, using a SAS session with Unicode support none of these problems occurred. Only the "illegal" characters were replaced with a special question mark symbol. In my local SAS installation (under Windows) the start icon for "SAS 9.4 (Unicode support)" can be found in a subfolder "Additional Languages" of the folder "SAS" where the usual start icon ("SAS 9.4 (English)") resides. Actually it calls the same sas.exe, but with a specific config file:&lt;/P&gt;
&lt;PRE&gt;...\SASHome\SASFoundation\9.4\&lt;STRONG&gt;nls\u8\sasv9.cfg&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;This should help to see &lt;EM&gt;how many&lt;/EM&gt; of these "illegal" characters are present and &lt;EM&gt;where&lt;/EM&gt; they are in the program file. You can then use a hex editor (see&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384"&gt;@Shmuel&lt;/a&gt;'s suggestion) to find out &lt;EM&gt;what kind of&lt;/EM&gt; "illegal" characters are in those places and finally decide how to deal with them.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 15:41:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-reading-editor-file/m-p/678145#M204650</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-08-20T15:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error when reading editor file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-reading-editor-file/m-p/678217#M204678</link>
      <description>&lt;P&gt;You may also want to review&amp;nbsp;&lt;A href="http://support.sas.com/kb/64089" target="_blank" rel="noopener"&gt;Usage Note 64089: Frequently asked questions about preparing your site to use UTF-8 SAS® session encoding&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I suspect you have some kind of encoding issue going on&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 19:06:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-reading-editor-file/m-p/678217#M204678</guid>
      <dc:creator>AMSAS</dc:creator>
      <dc:date>2020-08-20T19:06:39Z</dc:date>
    </item>
  </channel>
</rss>

