<?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: Creating SAS dataset with UTF-16 encoding format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-dataset-with-UTF-16-encoding-format/m-p/690373#M210033</link>
    <description>&lt;P&gt;You can set an encoding option on an individual dataset.&amp;nbsp; I don't think you can use UTF-16 as an encoding on a dataset but you can use it on a text file. See this note:&amp;nbsp;&lt;A href="https://support.sas.com/kb/16/355.html" target="_blank"&gt;https://support.sas.com/kb/16/355.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For a dataset you could use UTF-8 encoding. (Make sure your character fields are long enough incase some values take more bytes in UTF-8).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test(encoding='utf8'); set sashelp.class; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But to really process UTF-16 data the whole SAS session needs to be using ENCODING=UTF8 setting (or using double byte character sets). Such settings needs to be set when you start SAS itself.&amp;nbsp; Most installations of SAS will include a way for you to run a UTF-8 (aka UNICODE) session.&amp;nbsp; For example on my PC I have "icons" for starting SAS with single byte encoding and with unicode support (UTF-8).&amp;nbsp; And for SAS/Studio and Enterprise Guide there are separate SAS servers that I can connect to with UTF-8 encoding.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Oct 2020 14:06:39 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-10-09T14:06:39Z</dc:date>
    <item>
      <title>Creating SAS dataset with UTF-16 encoding format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-dataset-with-UTF-16-encoding-format/m-p/690366#M210030</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Will SAS 9.4 support to create a dataset in UTF-16 encoding format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Could you please tell ,is there anyway to create dataset in UTF-16 format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Sasikala.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 13:29:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-dataset-with-UTF-16-encoding-format/m-p/690366#M210030</guid>
      <dc:creator>sasikala</dc:creator>
      <dc:date>2020-10-09T13:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Creating SAS dataset with UTF-16 encoding format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-dataset-with-UTF-16-encoding-format/m-p/690373#M210033</link>
      <description>&lt;P&gt;You can set an encoding option on an individual dataset.&amp;nbsp; I don't think you can use UTF-16 as an encoding on a dataset but you can use it on a text file. See this note:&amp;nbsp;&lt;A href="https://support.sas.com/kb/16/355.html" target="_blank"&gt;https://support.sas.com/kb/16/355.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For a dataset you could use UTF-8 encoding. (Make sure your character fields are long enough incase some values take more bytes in UTF-8).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test(encoding='utf8'); set sashelp.class; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But to really process UTF-16 data the whole SAS session needs to be using ENCODING=UTF8 setting (or using double byte character sets). Such settings needs to be set when you start SAS itself.&amp;nbsp; Most installations of SAS will include a way for you to run a UTF-8 (aka UNICODE) session.&amp;nbsp; For example on my PC I have "icons" for starting SAS with single byte encoding and with unicode support (UTF-8).&amp;nbsp; And for SAS/Studio and Enterprise Guide there are separate SAS servers that I can connect to with UTF-8 encoding.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 14:06:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-dataset-with-UTF-16-encoding-format/m-p/690373#M210033</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-10-09T14:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creating SAS dataset with UTF-16 encoding format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-dataset-with-UTF-16-encoding-format/m-p/690900#M210215</link>
      <description>&lt;P&gt;Thanks Tom&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 07:43:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-dataset-with-UTF-16-encoding-format/m-p/690900#M210215</guid>
      <dc:creator>sasikala</dc:creator>
      <dc:date>2020-10-12T07:43:35Z</dc:date>
    </item>
  </channel>
</rss>

