<?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 encoding error?! Out of the blue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/encoding-error-Out-of-the-blue/m-p/703523#M215573</link>
    <description>&lt;P&gt;Good evening.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have been running the same code for about 6 months without issue. All of a sudden over the past 2 days I keep getting a new error. Nothing has changed in my code at all.... I'm not sure what to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the note followed by the error I receive. Any advice?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="sasSource"&gt;88 data work.tfns34; set tfn.s34;&lt;/DIV&gt;
&lt;DIV id="sasLogNote12_1607040941450" class="sasNote"&gt;NOTE: Data file TFN.S34.DATA is in a format that is native to another host, or&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;the file encoding does not match the session encoding. Cross Environment&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Data Access will be used, which might require additional CPU resources&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;and might reduce performance.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;89&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="sasLogError1_1607040941450" class="sasError"&gt;ERROR: Some character data was lost during transcoding in the dataset TFN.S34.&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;Either the data contains characters that are not representable in the&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;new encoding or truncation occurred during transcoding.&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;PRE id="pre_sasLog_18728" class="sasLog" style="background-color: transparent; -webkit-user-select: text; -webkit-user-modify: read-only; -webkit-touch-callout: default; border-top-width: 0px; border-bottom-width: 0px;"&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Dec 2020 00:21:07 GMT</pubDate>
    <dc:creator>anweinbe</dc:creator>
    <dc:date>2020-12-04T00:21:07Z</dc:date>
    <item>
      <title>encoding error?! Out of the blue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/encoding-error-Out-of-the-blue/m-p/703523#M215573</link>
      <description>&lt;P&gt;Good evening.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have been running the same code for about 6 months without issue. All of a sudden over the past 2 days I keep getting a new error. Nothing has changed in my code at all.... I'm not sure what to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the note followed by the error I receive. Any advice?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="sasSource"&gt;88 data work.tfns34; set tfn.s34;&lt;/DIV&gt;
&lt;DIV id="sasLogNote12_1607040941450" class="sasNote"&gt;NOTE: Data file TFN.S34.DATA is in a format that is native to another host, or&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;the file encoding does not match the session encoding. Cross Environment&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Data Access will be used, which might require additional CPU resources&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;and might reduce performance.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;89&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="sasLogError1_1607040941450" class="sasError"&gt;ERROR: Some character data was lost during transcoding in the dataset TFN.S34.&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;Either the data contains characters that are not representable in the&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;new encoding or truncation occurred during transcoding.&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;PRE id="pre_sasLog_18728" class="sasLog" style="background-color: transparent; -webkit-user-select: text; -webkit-user-modify: read-only; -webkit-touch-callout: default; border-top-width: 0px; border-bottom-width: 0px;"&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 00:21:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/encoding-error-Out-of-the-blue/m-p/703523#M215573</guid>
      <dc:creator>anweinbe</dc:creator>
      <dc:date>2020-12-04T00:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: encoding error?! Out of the blue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/encoding-error-Out-of-the-blue/m-p/703524#M215574</link>
      <description>Are you using WRDS (your dataset name is used there)?  They have recently converted data to UTF8, and you should have seen notifications.   Contact them to confirm.</description>
      <pubDate>Fri, 04 Dec 2020 00:31:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/encoding-error-Out-of-the-blue/m-p/703524#M215574</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-12-04T00:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: encoding error?! Out of the blue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/encoding-error-Out-of-the-blue/m-p/703526#M215575</link>
      <description>&lt;P&gt;I am using WRDS... I didn't receive any notifications from my university...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anything you can pass on?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 00:33:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/encoding-error-Out-of-the-blue/m-p/703526#M215575</guid>
      <dc:creator>anweinbe</dc:creator>
      <dc:date>2020-12-04T00:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: encoding error?! Out of the blue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/encoding-error-Out-of-the-blue/m-p/703527#M215576</link>
      <description>Use the wrds website to find the info.  If you can't find it, use their link to get help.</description>
      <pubDate>Fri, 04 Dec 2020 00:36:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/encoding-error-Out-of-the-blue/m-p/703527#M215576</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-12-04T00:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: encoding error?! Out of the blue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/encoding-error-Out-of-the-blue/m-p/703528#M215577</link>
      <description>found an article on WRDS:&lt;BR /&gt;&lt;BR /&gt;2 options for those with the same issue:&lt;BR /&gt;&lt;BR /&gt;Option 1: Add "inencoding=asciiany" to your custom libname statements&lt;BR /&gt;&lt;BR /&gt;In your SAS code where you specify the library for your saved data, or if you have custom libname statements referencing WRDS data, simply add the option "inencoding=asciiany" to the end of the statements, for example:&lt;BR /&gt;libname mylib '~/' inencoding=asciiany;&lt;BR /&gt;libname complib '/wrds/comp/sasdata/d_na/' inencoding=asciiany;&lt;BR /&gt;&lt;BR /&gt;Option 2: Change the encoding of your saved dataset to UTF-8 so it matches WRDS data encoding&lt;BR /&gt;&lt;BR /&gt;You can change the encoding of your dataset to UTF-8 format with the following code:&lt;BR /&gt;&lt;BR /&gt;proc datasets nolist library=mylib;&lt;BR /&gt;modify mydata / correctencoding=utf8;&lt;BR /&gt;quit;</description>
      <pubDate>Fri, 04 Dec 2020 00:41:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/encoding-error-Out-of-the-blue/m-p/703528#M215577</guid>
      <dc:creator>anweinbe</dc:creator>
      <dc:date>2020-12-04T00:41:44Z</dc:date>
    </item>
  </channel>
</rss>

