<?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: PROC FREQ &amp;amp; Invalid statement due to first character being unprintable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-amp-Invalid-statement-due-to-first-character-being/m-p/783272#M249712</link>
    <description>&lt;P&gt;Thank you !&lt;BR /&gt;Indeed, maybe it is an invisible special character that has slipped into the code&lt;BR /&gt;I will check this with her&lt;/P&gt;</description>
    <pubDate>Tue, 30 Nov 2021 20:35:11 GMT</pubDate>
    <dc:creator>bberangere</dc:creator>
    <dc:date>2021-11-30T20:35:11Z</dc:date>
    <item>
      <title>PROC FREQ &amp; Invalid statement due to first character being unprintable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-amp-Invalid-statement-due-to-first-character-being/m-p/783221#M249689</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;I am teaching SAS to students and one of them has the following problem, which i have never seen&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;We all use the same csv file to import and we all use SAS studio.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Importing the table is a success for everyone, and we can all look at our dataset.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;But when the student wants to do &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;PROC FREQ Data = house;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;By bathrooms / missing;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;RUN;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;The following message appears, just for her (&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;For everyone else the code works) :&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"Invalid statement due to first character being unprintable (hexadecimal representation [...]"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know how to help her, could you help us?&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;She quit and restarted SAS, without success&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 17:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-amp-Invalid-statement-due-to-first-character-being/m-p/783221#M249689</guid>
      <dc:creator>bberangere</dc:creator>
      <dc:date>2021-11-30T17:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FREQ &amp; Invalid statement due to first character being unprintable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-amp-Invalid-statement-due-to-first-character-being/m-p/783237#M249694</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Bérangère,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;How did the student get the CSV file into SAS or onto the server?&lt;BR /&gt;My guess is they did something different from all the other students and the CSV file or SAS Dataset (house) that was created from it has some issues.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 18:14:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-amp-Invalid-statement-due-to-first-character-being/m-p/783237#M249694</guid>
      <dc:creator>AMSAS</dc:creator>
      <dc:date>2021-11-30T18:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FREQ &amp; Invalid statement due to first character being unprintable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-amp-Invalid-statement-due-to-first-character-being/m-p/783241#M249698</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/408360"&gt;@bberangere&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 had never seen this error either, but found it mentioned in the forum archives. Thanks to &lt;A href="https://communities.sas.com/t5/SAS-Programming/What-to-do-about-weird-characters-in-the-data/m-p/640563/highlight/true#M190838" target="_blank" rel="noopener"&gt;this 2020 post&lt;/A&gt;, which included the hex code, I was able to reproduce it in the Display Manager interface of SAS 9.4&lt;FONT face="helvetica"&gt;:&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;47   proc freq data=sashelp.class;
48   &amp;#157;tables age / missing;
&lt;FONT color="#FF0000"&gt;     -
     217&lt;/FONT&gt;
&lt;FONT color="#FF0000"&gt;ERROR 217-322: Invalid statement due to first character being unprintable (hexadecimal representation: 9D).&lt;/FONT&gt;
49   run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Showing the actual log (in a code window opened with the &amp;lt;/&amp;gt; button) as above is helpful because the position of the unprintable character is underlined. (I had inserted it with Alt+157 before the "&lt;FONT face="courier new,courier"&gt;t&lt;/FONT&gt;" of "&lt;FONT face="courier new,courier"&gt;tables&lt;/FONT&gt;.")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To remove the unwanted character, just move the cursor to the underlined position and press the Del key (as if you wanted to delete the first visible character of the statement in question, i.e., the "t" in the example above). Repeat this a few times if more unprintable characters are found in the same place.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, you may want to try the "&lt;SPAN&gt;auto-format code trick" mentioned in &lt;A href="https://communities.sas.com/t5/General-SAS-Programming/Error-on-SAS-Studio/m-p/628534/highlight/true#M59891" target="_blank" rel="noopener"&gt;this 2018 thread&lt;/A&gt; or retype or copy and paste the code from a source which contains just plain text without unwanted characters.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 18:31:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-amp-Invalid-statement-due-to-first-character-being/m-p/783241#M249698</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-11-30T18:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FREQ &amp; Invalid statement due to first character being unprintable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-amp-Invalid-statement-due-to-first-character-being/m-p/783245#M249700</link>
      <description>&lt;P&gt;Please post the&amp;nbsp;&lt;EM&gt;complete&lt;/EM&gt; log of that step, and post it by copy/pasting into a window opened with this button:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" style="width: 715px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54552i914D97BE1B0F21E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You must do this directly from the log window of the student's computer. We need to see the position of the error marker, and the complete hexadecimal representation of the unprintable character(s).&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 18:36:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-amp-Invalid-statement-due-to-first-character-being/m-p/783245#M249700</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-30T18:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FREQ &amp; Invalid statement due to first character being unprintable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-amp-Invalid-statement-due-to-first-character-being/m-p/783246#M249701</link>
      <description>Couple of possible reasons this happens;&lt;BR /&gt;Copying and pasting code from HTML or systems that add symbols.&lt;BR /&gt;Using different language keyboard settings installed, Chinese is the one I think we're I've seen this issue before. &lt;BR /&gt;Browser Add ons that are modifying the code/system somehow is another one but not something I think is the cause in this case. &lt;BR /&gt;</description>
      <pubDate>Tue, 30 Nov 2021 18:46:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-amp-Invalid-statement-due-to-first-character-being/m-p/783246#M249701</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-11-30T18:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FREQ &amp; Invalid statement due to first character being unprintable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-amp-Invalid-statement-due-to-first-character-being/m-p/783270#M249711</link>
      <description>Thank you for your reply&lt;BR /&gt;We use SAS University / SAS Studio, so with the virtual machine that is incorporated into SAS&lt;BR /&gt;A slightly different version of SAS Base or SAS Guide&lt;BR /&gt;&lt;BR /&gt;I checked with her and everything looked correct to me&lt;BR /&gt;Importing the same file as the other students, the table was showing the same&lt;BR /&gt;We tested several variables in the PROC FREQ, it did not work&lt;BR /&gt;&lt;BR /&gt;This is the reason why I am quite helpless despite my 10 experiences with SAS</description>
      <pubDate>Tue, 30 Nov 2021 20:27:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-amp-Invalid-statement-due-to-first-character-being/m-p/783270#M249711</guid>
      <dc:creator>bberangere</dc:creator>
      <dc:date>2021-11-30T20:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FREQ &amp; Invalid statement due to first character being unprintable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-amp-Invalid-statement-due-to-first-character-being/m-p/783272#M249712</link>
      <description>&lt;P&gt;Thank you !&lt;BR /&gt;Indeed, maybe it is an invisible special character that has slipped into the code&lt;BR /&gt;I will check this with her&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 20:35:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-amp-Invalid-statement-due-to-first-character-being/m-p/783272#M249712</guid>
      <dc:creator>bberangere</dc:creator>
      <dc:date>2021-11-30T20:35:11Z</dc:date>
    </item>
  </channel>
</rss>

