<?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: Encoding problem with SAS-job that reads from Netezza and writes to SQL Server in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Encoding-problem-with-SAS-job-that-reads-from-Netezza-and-writes/m-p/711657#M219262</link>
    <description>&lt;P&gt;Thanks! The business user is going to insert it into his script and make the comparison.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the meantime there's a bigger problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We know that the SAS-script executed in the daily batch uses LATIN-9 (ISO-8859-15) encoding. We also know that the SQL Server target database uses "Danish_Norwegian_CI_AS" encoding/collation. Yet all occurrences of ÆØÅ from the various sources appear as '?' in SQL Server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a kind of conflict/inconsistency between how LATIN9 and&amp;nbsp;"Danish_Norwegian_CI_AS" treats ÆØÅ? If so, I'd appreciate any suggestions on how to resolve it. I assume we'll need some kind of encoding logic in the SAS-script.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jan 2021 12:19:17 GMT</pubDate>
    <dc:creator>EinarRoed</dc:creator>
    <dc:date>2021-01-15T12:19:17Z</dc:date>
    <item>
      <title>Encoding problem with SAS-job that reads from Netezza and writes to SQL Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encoding-problem-with-SAS-job-that-reads-from-Netezza-and-writes/m-p/711350#M219119</link>
      <description>&lt;P&gt;I've got a SAS-job that extracts data from multiple sources, including Netezza. It runs successfully when I execute it in Enterprise Guide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However when this program is executed via the daily batch, all special characters (notably æ, ø, å) that are loaded from Netezza into the target table appear like '?'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The daily batch executes the SAS-job via SSIS. The target table is on SQL Server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have any advice on how I can resolve this issue? I want the special characters to appear as they are. Do I need to include some kind of encoding logic in the SAS-job?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 06:37:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encoding-problem-with-SAS-job-that-reads-from-Netezza-and-writes/m-p/711350#M219119</guid>
      <dc:creator>EinarRoed</dc:creator>
      <dc:date>2021-01-14T06:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding problem with SAS-job that reads from Netezza and writes to SQL Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encoding-problem-with-SAS-job-that-reads-from-Netezza-and-writes/m-p/711356#M219124</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/33000"&gt;@EinarRoed&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can start by verifying if SAS session encoding value is same when executed from EG and via batch.&lt;/P&gt;
&lt;P&gt;Below proc can fetch this information in SAS log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option=encoding; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jan 2021 07:23:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encoding-problem-with-SAS-job-that-reads-from-Netezza-and-writes/m-p/711356#M219124</guid>
      <dc:creator>AnandVyas</dc:creator>
      <dc:date>2021-01-14T07:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding problem with SAS-job that reads from Netezza and writes to SQL Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encoding-problem-with-SAS-job-that-reads-from-Netezza-and-writes/m-p/711657#M219262</link>
      <description>&lt;P&gt;Thanks! The business user is going to insert it into his script and make the comparison.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the meantime there's a bigger problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We know that the SAS-script executed in the daily batch uses LATIN-9 (ISO-8859-15) encoding. We also know that the SQL Server target database uses "Danish_Norwegian_CI_AS" encoding/collation. Yet all occurrences of ÆØÅ from the various sources appear as '?' in SQL Server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a kind of conflict/inconsistency between how LATIN9 and&amp;nbsp;"Danish_Norwegian_CI_AS" treats ÆØÅ? If so, I'd appreciate any suggestions on how to resolve it. I assume we'll need some kind of encoding logic in the SAS-script.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 12:19:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encoding-problem-with-SAS-job-that-reads-from-Netezza-and-writes/m-p/711657#M219262</guid>
      <dc:creator>EinarRoed</dc:creator>
      <dc:date>2021-01-15T12:19:17Z</dc:date>
    </item>
  </channel>
</rss>

