<?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 How to change session encoding dynamically in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-session-encoding-dynamically/m-p/276661#M55460</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am writing sas script which will work in batch. Encoding of SASApp session is UTF8 and all my tables (in Oracle database and SAS Datasets) has UTF8 encoding. BUT I have one compiled macro which can work with WCYRILLIC encoding only (it crashes with error if I use UTF8 as session encoding). This macro doesn't work with my tables, it performs some auxiliary actions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The question is: how could I dynamically change session encoding from UTF8 to WCYRILLIC before the macro invoked and change it back to UTF8 just after it will be executed.&lt;/P&gt;</description>
    <pubDate>Sat, 11 Jun 2016 08:35:01 GMT</pubDate>
    <dc:creator>DmitryErshov</dc:creator>
    <dc:date>2016-06-11T08:35:01Z</dc:date>
    <item>
      <title>How to change session encoding dynamically</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-session-encoding-dynamically/m-p/276661#M55460</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am writing sas script which will work in batch. Encoding of SASApp session is UTF8 and all my tables (in Oracle database and SAS Datasets) has UTF8 encoding. BUT I have one compiled macro which can work with WCYRILLIC encoding only (it crashes with error if I use UTF8 as session encoding). This macro doesn't work with my tables, it performs some auxiliary actions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The question is: how could I dynamically change session encoding from UTF8 to WCYRILLIC before the macro invoked and change it back to UTF8 just after it will be executed.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2016 08:35:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-session-encoding-dynamically/m-p/276661#M55460</guid>
      <dc:creator>DmitryErshov</dc:creator>
      <dc:date>2016-06-11T08:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to change session encoding dynamically</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-session-encoding-dynamically/m-p/276666#M55462</link>
      <description>&lt;P&gt;Hi Dmitry,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately for you the ENCODING option to set the session encoding cannot be dynamically changed. As per &lt;A href="http://support.sas.com/documentation/cdl/en/nlsref/67964/HTML/default/viewer.htm#n0utx4w7x4exijn1wt7pk0srrxz5.htm" target="_blank"&gt;the doc&lt;/A&gt;, it is valid only in config files and invocation of SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;- Jan.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2016 09:38:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-session-encoding-dynamically/m-p/276666#M55462</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2016-06-11T09:38:25Z</dc:date>
    </item>
  </channel>
</rss>

