<?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 misinterpret commas in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-misinterpret-commas/m-p/523571#M4648</link>
    <description>&lt;P&gt;Those are not commas.&amp;nbsp; A comma sits on the baseline and has a tail that extends below the baseline. It is is period with a tail.&lt;/P&gt;
&lt;P&gt;Those look like single quotes in your first example.&amp;nbsp; In the second one perhaps somehow the text went through something that decided it should replace the simple single quotes with something "prettier".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check the ENCODING settings of the two SAS sessions.&amp;nbsp; And if you are actually reading the data from text files then check the encoding (if any) that is stored in BOM (&lt;A href="https://en.wikipedia.org/wiki/Byte_order_mark" target="_self"&gt;https://en.wikipedia.org/wiki/Byte_order_mark&lt;/A&gt;) of the files.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Dec 2018 18:42:38 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2018-12-26T18:42:38Z</dc:date>
    <item>
      <title>SAS misinterpret commas</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-misinterpret-commas/m-p/523554#M4640</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recently faced an issue with SAS and I am not sure about the cause of the issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran the same inputs twice and SAS strangely created extra symbols&amp;nbsp;instead of the comma in the second time. Even though&amp;nbsp;I didn't change anything in my code.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached both outputs.&amp;nbsp; Please let me know if there is a soln for this problem.&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;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture_SAS.PNG" style="width: 437px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25887i48473183448BAB5F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture_SAS.PNG" alt="Capture_SAS.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture_SAS1.PNG" style="width: 347px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25888iE39E65937B8562DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture_SAS1.PNG" alt="Capture_SAS1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 16:19:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-misinterpret-commas/m-p/523554#M4640</guid>
      <dc:creator>mona4u</dc:creator>
      <dc:date>2018-12-26T16:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS misinterpret commas</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-misinterpret-commas/m-p/523562#M4643</link>
      <description>&lt;P&gt;Please post:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the input data, either as attachment or in a {i} sub window&lt;/LI&gt;
&lt;LI&gt;your code ("little running man" button)&lt;/LI&gt;
&lt;LI&gt;the logs from both executions (once again, {i} button)&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 26 Dec 2018 17:35:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-misinterpret-commas/m-p/523562#M4643</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-12-26T17:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS misinterpret commas</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-misinterpret-commas/m-p/523570#M4647</link>
      <description>This means your input file did not properly quote embedded commas in your text or you have both commas and quotes in your comments messing it up. In these types of cases cleaning the data can be painful. I'll often just import it from an Excel file, if the Excel file is formatted correctly.</description>
      <pubDate>Wed, 26 Dec 2018 18:42:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-misinterpret-commas/m-p/523570#M4647</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-12-26T18:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS misinterpret commas</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-misinterpret-commas/m-p/523571#M4648</link>
      <description>&lt;P&gt;Those are not commas.&amp;nbsp; A comma sits on the baseline and has a tail that extends below the baseline. It is is period with a tail.&lt;/P&gt;
&lt;P&gt;Those look like single quotes in your first example.&amp;nbsp; In the second one perhaps somehow the text went through something that decided it should replace the simple single quotes with something "prettier".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check the ENCODING settings of the two SAS sessions.&amp;nbsp; And if you are actually reading the data from text files then check the encoding (if any) that is stored in BOM (&lt;A href="https://en.wikipedia.org/wiki/Byte_order_mark" target="_self"&gt;https://en.wikipedia.org/wiki/Byte_order_mark&lt;/A&gt;) of the files.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 18:42:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-misinterpret-commas/m-p/523571#M4648</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-12-26T18:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS misinterpret commas</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-misinterpret-commas/m-p/523574#M4650</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached&amp;nbsp;all files input-output and the program.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know how to save the log.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 19:03:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-misinterpret-commas/m-p/523574#M4650</guid>
      <dc:creator>mona4u</dc:creator>
      <dc:date>2018-12-26T19:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS misinterpret commas</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-misinterpret-commas/m-p/523579#M4655</link>
      <description>&lt;P&gt;So the text file you posted is using UTF-8 encoding.&amp;nbsp; You can tell because curly quote in&lt;/P&gt;
&lt;PRE&gt;Barrett’s Esophagus&lt;/PRE&gt;
&lt;P&gt;is stored as the three byte sequence 'E28099'x instead of the single byte '92'x that it would require in WLATIN1 encoding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add this option to your INFILE statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;encoding='utf-8'&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the data has many other UTF-8 characters then you might need to run your SAS session using UTF-8 encoding instead of running it with WLATIN1 (or whatever single byte encoding you are using) since you might encounter Unicode strings that could not be mapped to single byte codes in the encoding that your SAS session is using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 19:57:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-misinterpret-commas/m-p/523579#M4655</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-12-26T19:57:48Z</dc:date>
    </item>
  </channel>
</rss>

