<?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 Troubles accessing DB2 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Troubles-accessing-DB2/m-p/665331#M198920</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running SAS 9.4 (M3) on a Windows 2016 Server. When accessing a DB2 Database (DB2 v11.1.4.5) on AIX 7.2 via SAS/ACCESS Interface to DB2, I get the following warning message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;WARNING: During read: [IBM][CLI Driver] CLI0182W Fractional truncation.SQLSTATE=01S07 : [IBM][CLI Driver] CLI0182W Fractional truncation.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;(The message is repeated some more times. )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Occasionally, an additional error message occurs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ERROR: An error occurred when translating from one type of character encoding to another.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess, the messages have something to do with encoding issues. While our database uses UTF-8, SAS uses WLATIN1. But changing the encoding within SAS is not an option. A "special feature": The same code sometimes results in warnings or error message, and sometimes it does not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found &lt;A href="http://support.sas.com/kb/64/478.html," target="_blank" rel="noopener"&gt;http://support.sas.com/kb/64/478.html,&lt;/A&gt; but this does not work within our environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anybody an idea how to solve this issue?&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jun 2020 12:30:38 GMT</pubDate>
    <dc:creator>SvenWagner</dc:creator>
    <dc:date>2020-06-26T12:30:38Z</dc:date>
    <item>
      <title>Troubles accessing DB2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Troubles-accessing-DB2/m-p/665331#M198920</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running SAS 9.4 (M3) on a Windows 2016 Server. When accessing a DB2 Database (DB2 v11.1.4.5) on AIX 7.2 via SAS/ACCESS Interface to DB2, I get the following warning message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;WARNING: During read: [IBM][CLI Driver] CLI0182W Fractional truncation.SQLSTATE=01S07 : [IBM][CLI Driver] CLI0182W Fractional truncation.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;(The message is repeated some more times. )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Occasionally, an additional error message occurs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ERROR: An error occurred when translating from one type of character encoding to another.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess, the messages have something to do with encoding issues. While our database uses UTF-8, SAS uses WLATIN1. But changing the encoding within SAS is not an option. A "special feature": The same code sometimes results in warnings or error message, and sometimes it does not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found &lt;A href="http://support.sas.com/kb/64/478.html," target="_blank" rel="noopener"&gt;http://support.sas.com/kb/64/478.html,&lt;/A&gt; but this does not work within our environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anybody an idea how to solve this issue?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 12:30:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Troubles-accessing-DB2/m-p/665331#M198920</guid>
      <dc:creator>SvenWagner</dc:creator>
      <dc:date>2020-06-26T12:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Troubles accessing DB2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Troubles-accessing-DB2/m-p/665408#M198970</link>
      <description>&lt;P&gt;As far as I can fathom, the "fractional truncation" message comes when you try to store a decimal (or perhaps a floating point?) value in an integer column. But I am not sure how that would come about if you are only reading from the DB2 database.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you show the query that generates the message?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The encoding problem cannot be solved, unless you store your SAS data in a format that accepts all the possible values for character variables, there are many characters in UTF-8 that are not represented in a simple 8-bit character format such as WLATIN1. Even if you are not allowed to change the encoding for the SAS session, you can still use the ENCODING= dataset option on the table that you extract from DB2.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 16:37:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Troubles-accessing-DB2/m-p/665408#M198970</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2020-06-26T16:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Troubles accessing DB2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Troubles-accessing-DB2/m-p/665596#M199051</link>
      <description>&lt;P&gt;The truncation message could be due to numeric precision issues. If the DB2 mantissa in longer than 15 digits, you must drop some of them when using Windows.&lt;/P&gt;
&lt;P&gt;The character set issue only seems solvable by using the&amp;nbsp;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;encoding=&amp;nbsp;&lt;/FONT&gt; data set option in your case. Of course,&amp;nbsp;you will not be able to visualise the data set's contents if the SAS session uses the wrong encoding.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 02:17:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Troubles-accessing-DB2/m-p/665596#M199051</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-06-28T02:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Troubles accessing DB2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Troubles-accessing-DB2/m-p/665749#M199107</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the query is a quite simple DATA STEP as you can see in the attachment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Btw.: There is some more / other database return in the log than I would expect, or I'm used to. Do you have any clue what this means?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best, Sven&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 11:14:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Troubles-accessing-DB2/m-p/665749#M199107</guid>
      <dc:creator>SvenWagner</dc:creator>
      <dc:date>2020-06-29T11:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Troubles accessing DB2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Troubles-accessing-DB2/m-p/665753#M199109</link>
      <description>&lt;P&gt;It's not about the code it's about the data. Also did your see this page about &lt;SPAN&gt;SQLSTATE 01S07&lt;/SPAN&gt;? &lt;A href="https://www.ibm.com/support/knowledgecenter/SSEPGG_11.1.0/com.ibm.db2.luw.apdv.cli.doc/doc/r0058997.html" target="_blank" rel="noopener"&gt;https://www.ibm.com/support/knowledgecenter/SSEPGG_11.1.0/com.ibm.db2.luw.apdv.cli.doc/doc/r0058997.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 22:58:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Troubles-accessing-DB2/m-p/665753#M199109</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-06-29T22:58:03Z</dc:date>
    </item>
  </channel>
</rss>

