<?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 SQL: Some character data was lost during transcoding in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SQL-Some-character-data-was-lost-during-transcoding/m-p/467045#M119198</link>
    <description>&lt;P&gt;This code runs without an error:&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table&amp;nbsp;&lt;SPAN&gt;TZATDR&lt;/SPAN&gt;(rename=(_BIC_ZTDR=start txtmd=label)) as&lt;BR /&gt;select *&lt;BR /&gt;from Eng.'/BIC/TZATDR'n&lt;BR /&gt;order by _BIC_ZTADR;&lt;BR /&gt;quit;&lt;BR /&gt;data &lt;SPAN&gt;TZATDR&lt;/SPAN&gt;;&lt;BR /&gt;set &lt;SPAN&gt;TZATDR&lt;/SPAN&gt;;&lt;BR /&gt;fmtname="$&lt;SPAN&gt;TZATDR&lt;/SPAN&gt;";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I receive an error (shown below) when I run the code below.&amp;nbsp;How do I correct this error?&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table &lt;SPAN&gt;TZATDR&lt;/SPAN&gt;(rename=(&lt;SPAN&gt;_BIC_ZTDR&lt;/SPAN&gt;=start txtmd=label)) as&lt;BR /&gt;select *, "$&lt;SPAN&gt;TZATDR&lt;/SPAN&gt;" as fmtname&lt;BR /&gt;from &lt;SPAN&gt;Eng.'/BIC/TZATDR'n&lt;/SPAN&gt;&lt;BR /&gt;order by &lt;SPAN&gt;_BIC_ZTADR&lt;/SPAN&gt;&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Some character data was lost during transcoding in the dataset &lt;SPAN&gt;Eng.'/BIC/TZATDR'n&lt;/SPAN&gt;. Either the data contains&lt;BR /&gt;characters that are not representable in the new encoding or truncation occurred during transcoding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jun 2018 22:25:53 GMT</pubDate>
    <dc:creator>gzr2mz39</dc:creator>
    <dc:date>2018-06-01T22:25:53Z</dc:date>
    <item>
      <title>SQL: Some character data was lost during transcoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Some-character-data-was-lost-during-transcoding/m-p/467045#M119198</link>
      <description>&lt;P&gt;This code runs without an error:&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table&amp;nbsp;&lt;SPAN&gt;TZATDR&lt;/SPAN&gt;(rename=(_BIC_ZTDR=start txtmd=label)) as&lt;BR /&gt;select *&lt;BR /&gt;from Eng.'/BIC/TZATDR'n&lt;BR /&gt;order by _BIC_ZTADR;&lt;BR /&gt;quit;&lt;BR /&gt;data &lt;SPAN&gt;TZATDR&lt;/SPAN&gt;;&lt;BR /&gt;set &lt;SPAN&gt;TZATDR&lt;/SPAN&gt;;&lt;BR /&gt;fmtname="$&lt;SPAN&gt;TZATDR&lt;/SPAN&gt;";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I receive an error (shown below) when I run the code below.&amp;nbsp;How do I correct this error?&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table &lt;SPAN&gt;TZATDR&lt;/SPAN&gt;(rename=(&lt;SPAN&gt;_BIC_ZTDR&lt;/SPAN&gt;=start txtmd=label)) as&lt;BR /&gt;select *, "$&lt;SPAN&gt;TZATDR&lt;/SPAN&gt;" as fmtname&lt;BR /&gt;from &lt;SPAN&gt;Eng.'/BIC/TZATDR'n&lt;/SPAN&gt;&lt;BR /&gt;order by &lt;SPAN&gt;_BIC_ZTADR&lt;/SPAN&gt;&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Some character data was lost during transcoding in the dataset &lt;SPAN&gt;Eng.'/BIC/TZATDR'n&lt;/SPAN&gt;. Either the data contains&lt;BR /&gt;characters that are not representable in the new encoding or truncation occurred during transcoding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 22:25:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Some-character-data-was-lost-during-transcoding/m-p/467045#M119198</guid>
      <dc:creator>gzr2mz39</dc:creator>
      <dc:date>2018-06-01T22:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: SQL: Some character data was lost during transcoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Some-character-data-was-lost-during-transcoding/m-p/467102#M119221</link>
      <description>&lt;P&gt;Just to test a theory: Do you still get the error if running below code version?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table TZATDR(rename=(_BIC_ZTDR=start txtmd=label)) as
select *, "$TZATDR" as fmtname length=28
from Eng.'/BIC/TZATDR'n
order by _BIC_ZTADR
;
quit&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 02 Jun 2018 09:31:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Some-character-data-was-lost-during-transcoding/m-p/467102#M119221</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-06-02T09:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: SQL: Some character data was lost during transcoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Some-character-data-was-lost-during-transcoding/m-p/467504#M119339</link>
      <description>&lt;P&gt;Yes, I still get the same error with that code.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 19:09:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Some-character-data-was-lost-during-transcoding/m-p/467504#M119339</guid>
      <dc:creator>gzr2mz39</dc:creator>
      <dc:date>2018-06-04T19:09:49Z</dc:date>
    </item>
  </channel>
</rss>

