<?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: Disapointing behaviour using ENCODING option - consider for next release in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Disapointing-behaviour-using-ENCODING-option-consider-for-next/m-p/597142#M172025</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384"&gt;@Shmuel&lt;/a&gt;&amp;nbsp;&amp;nbsp;You might want to post this in the&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SASware-Ballot-Ideas/idb-p/sas_ideas" target="_self"&gt;SASware Ballot Ideas&lt;/A&gt; forum.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2019 20:17:53 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2019-10-17T20:17:53Z</dc:date>
    <item>
      <title>Disapointing behaviour using ENCODING option - consider for next release</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Disapointing-behaviour-using-ENCODING-option-consider-for-next/m-p/596942#M171958</link>
      <description>&lt;P&gt;While trying to contribute to&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Encoding-from-LATIN1-to-UTF8-w-o-changing-files-time-stamps-or/m-p/596655" target="_self"&gt;https://communities.sas.com/t5/SAS-Programming/Encoding-from-LATIN1-to-UTF8-w-o-changing-files-time-stamps-or/m-p/596655&lt;/A&gt;&amp;nbsp;I proposed to make a combination of linux copy (&lt;STRONG&gt;cp&lt;/STRONG&gt;) with &lt;STRONG&gt;-p&lt;/STRONG&gt; option to preserve the original attributes, and create a view that will translate the encoding into the required one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Later I used SAS-UE to test my proposed code and found that it doesn't work as expected. Code and log are:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;73         data work.class (encoding='Latin1') / view=work.class;
 74          set sashelp.class;
 75         run;
 
&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt; ERROR: The ENCODING= data set option is not supported for DATA step views.&lt;/STRONG&gt;&lt;/FONT&gt;
 NOTE: View not saved due to errors.
 NOTE: The SAS System stopped processing this step because of errors.&lt;/PRE&gt;
&lt;P&gt;It could be worthful to enable &lt;STRONG&gt;encoding&lt;/STRONG&gt;, as translation tool, to &lt;STRONG&gt;views&lt;/STRONG&gt; without need to copy the whole data thus saving disk space.&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;</description>
      <pubDate>Wed, 16 Oct 2019 15:07:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Disapointing-behaviour-using-ENCODING-option-consider-for-next/m-p/596942#M171958</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-10-16T15:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Disapointing behaviour using ENCODING option - consider for next release</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Disapointing-behaviour-using-ENCODING-option-consider-for-next/m-p/597142#M172025</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384"&gt;@Shmuel&lt;/a&gt;&amp;nbsp;&amp;nbsp;You might want to post this in the&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SASware-Ballot-Ideas/idb-p/sas_ideas" target="_self"&gt;SASware Ballot Ideas&lt;/A&gt; forum.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 20:17:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Disapointing-behaviour-using-ENCODING-option-consider-for-next/m-p/597142#M172025</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-10-17T20:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Disapointing behaviour using ENCODING option - consider for next release</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Disapointing-behaviour-using-ENCODING-option-consider-for-next/m-p/597155#M172034</link>
      <description>&lt;P&gt;I don't understand why that would be needed.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1     %put %sysfunc(getoption(encoding));
UTF-8
2     proc contents data=sashelp.class; run;

NOTE: PROCEDURE CONTENTS used (Total process time):
      real time           0.39 seconds
      cpu time            0.04 seconds


3     data class / view=class ;
4       set sashelp.class;
5     run;

NOTE: DATA STEP view saved on file WORK.CLASS.
NOTE: A stored DATA STEP view cannot run under a different operating system.
NOTE: DATA statement used (Total process time):
      real time           0.13 seconds
      cpu time            0.01 seconds


6
7     data class_copy;
8      set class;
9     run;

NOTE: View WORK.CLASS.VIEW used (Total process time):
      real time           0.09 seconds
      cpu time            0.01 seconds

NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: There were 19 observations read from the data set WORK.CLASS.
NOTE: The data set WORK.CLASS_COPY has 19 observations and 5 variables.
NOTE: DATA statement used (Total process time):
      real time           0.15 seconds
      cpu time            0.04 seconds


10
11    proc contents data=class_copy;
12    run;

NOTE: PROCEDURE CONTENTS used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The resulting CLASS_COPY dataset is using the UTF-8 encoding.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 03:54:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Disapointing-behaviour-using-ENCODING-option-consider-for-next/m-p/597155#M172034</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-17T03:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Disapointing behaviour using ENCODING option - consider for next release</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Disapointing-behaviour-using-ENCODING-option-consider-for-next/m-p/597157#M172035</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;, you are running in sas environment already defined with encodig=utf-8.&lt;/P&gt;
&lt;P&gt;The problem arised when a mass of datasets were created with encoding=Latin1 but need be&lt;/P&gt;
&lt;P&gt;converted to encoding=utf-8.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 04:07:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Disapointing-behaviour-using-ENCODING-option-consider-for-next/m-p/597157#M172035</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-10-17T04:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Disapointing behaviour using ENCODING option - consider for next release</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Disapointing-behaviour-using-ENCODING-option-consider-for-next/m-p/597160#M172037</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;I'll do it soon.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 04:08:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Disapointing-behaviour-using-ENCODING-option-consider-for-next/m-p/597160#M172037</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-10-17T04:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Disapointing behaviour using ENCODING option - consider for next release</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Disapointing-behaviour-using-ENCODING-option-consider-for-next/m-p/597161#M172038</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384"&gt;@Shmuel&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;, you are running in sas environment already defined with encodig=utf-8.&lt;/P&gt;
&lt;P&gt;The problem arised when a mass of datasets were created with encoding=Latin1 but need be&lt;/P&gt;
&lt;P&gt;converted to encoding=utf-8.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So do the conversion in a session using UTF-8 encoding.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 04:09:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Disapointing-behaviour-using-ENCODING-option-consider-for-next/m-p/597161#M172038</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-17T04:09:56Z</dc:date>
    </item>
  </channel>
</rss>

