<?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 UTF- 8 Unicode in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-UTF-8-Unicode/m-p/745070#M233515</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;This is a common issue when using data that was created on one server on a different server. Often experienced when migrating from an older SAS environment to a new one, or a Windows server to a Unix server&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a read of the documentation here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/movefile/n06qan4j3ffr6fn11bs4q11r8r56.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/movefile/n06qan4j3ffr6fn11bs4q11r8r56.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There's a section that discusses your error along with solutions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You mention that you need to convert multiple datasets. I can't offer you code solutions, but I can reflect on how I went about a similar issue at a site where I carried out a migration:&lt;/P&gt;
&lt;P&gt;They had I think about 100,000 or so datasets that needed converting. The datasets were strewn through out many directories, I think about 30,000 directories if I remember corrrectly.&lt;/P&gt;
&lt;P&gt;The approach I took was that I wrote a SAS program that 'spidered' a data volume, that is, it examined each directory, starting at the highest level&amp;nbsp; and then each subdirectory recursively. It examined every SAS dataset as well as other SAS artifacts such as catalogs to see if they needed to be converted to UTF-8. It also checked for things like password protection, corrupt datasets etc.&lt;/P&gt;
&lt;P&gt;Anyway, out of this, it produced a big 'shopping list' of SAS datasets that needed conversion, along with the path name&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Part two of the process was a SAS program that used the 'shopping list' to assign libnames and execute code to read the dataset and convert it to UTF8. It did this using methods discussed in the documentation link above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope that's helpful information.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jun 2021 03:15:20 GMT</pubDate>
    <dc:creator>MarkBodt_NZ</dc:creator>
    <dc:date>2021-06-02T03:15:20Z</dc:date>
    <item>
      <title>SAS UTF- 8 Unicode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-UTF-8-Unicode/m-p/745000#M233481</link>
      <description>&lt;P&gt;Hi, I am getting the below error when I am working on the SAS dataset. I think this is related to SAS UTF- 8 Unicode. Is there any way to deal with this? I need to do the same in multiple SAS datasets. Can anyone help me find a solution?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 972px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59936i0FEC8E52D140100C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 17:45:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-UTF-8-Unicode/m-p/745000#M233481</guid>
      <dc:creator>neethubabu</dc:creator>
      <dc:date>2021-06-01T17:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS UTF- 8 Unicode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-UTF-8-Unicode/m-p/745070#M233515</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;This is a common issue when using data that was created on one server on a different server. Often experienced when migrating from an older SAS environment to a new one, or a Windows server to a Unix server&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a read of the documentation here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/movefile/n06qan4j3ffr6fn11bs4q11r8r56.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/movefile/n06qan4j3ffr6fn11bs4q11r8r56.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There's a section that discusses your error along with solutions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You mention that you need to convert multiple datasets. I can't offer you code solutions, but I can reflect on how I went about a similar issue at a site where I carried out a migration:&lt;/P&gt;
&lt;P&gt;They had I think about 100,000 or so datasets that needed converting. The datasets were strewn through out many directories, I think about 30,000 directories if I remember corrrectly.&lt;/P&gt;
&lt;P&gt;The approach I took was that I wrote a SAS program that 'spidered' a data volume, that is, it examined each directory, starting at the highest level&amp;nbsp; and then each subdirectory recursively. It examined every SAS dataset as well as other SAS artifacts such as catalogs to see if they needed to be converted to UTF-8. It also checked for things like password protection, corrupt datasets etc.&lt;/P&gt;
&lt;P&gt;Anyway, out of this, it produced a big 'shopping list' of SAS datasets that needed conversion, along with the path name&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Part two of the process was a SAS program that used the 'shopping list' to assign libnames and execute code to read the dataset and convert it to UTF8. It did this using methods discussed in the documentation link above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope that's helpful information.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 03:15:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-UTF-8-Unicode/m-p/745070#M233515</guid>
      <dc:creator>MarkBodt_NZ</dc:creator>
      <dc:date>2021-06-02T03:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS UTF- 8 Unicode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-UTF-8-Unicode/m-p/745072#M233516</link>
      <description>&lt;P&gt;If your title is correct, it looks like you are reading UTF-8 data in a session that does not support this encoding (probably some form of &lt;EM&gt;wlatin&lt;/EM&gt;).&lt;/P&gt;
&lt;P&gt;UTF-8 can encode many characters that do not exist in &lt;EM&gt;wlatin&lt;/EM&gt;. So these characters are lost, as the message describes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To avoid losing them, you should run your SAS session using UTF-8 encoding. That's a start-up option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A similar issue arises when moving files to/from&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;mainframes as some characters only exist in ASCII or EBCDIC representation.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 03:38:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-UTF-8-Unicode/m-p/745072#M233516</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-06-02T03:38:08Z</dc:date>
    </item>
  </channel>
</rss>

