<?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: Columns truncated when saving table using database and odbc in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Columns-truncated-when-saving-table-using-database-and-odbc/m-p/167641#M300899</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like a limit in ODBC and/or the ODBC driver of the database. Use direct access to the database, or do an export to a file and import that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Nov 2014 13:08:47 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2014-11-12T13:08:47Z</dc:date>
    <item>
      <title>Columns truncated when saving table using database and odbc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Columns-truncated-when-saving-table-using-database-and-odbc/m-p/167640#M300898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a datastep to save tables to local disc from a database using odbc. The simple code looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data LD.Diva; DD.Diva;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where LD is the local directory and DD is the assigned database connection. It works fine except for columns containing long strings (above 1024 char), these are truncated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have a solution for this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 12:59:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Columns-truncated-when-saving-table-using-database-and-odbc/m-p/167640#M300898</guid>
      <dc:creator>peter_sjogarde</dc:creator>
      <dc:date>2014-11-12T12:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Columns truncated when saving table using database and odbc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Columns-truncated-when-saving-table-using-database-and-odbc/m-p/167641#M300899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like a limit in ODBC and/or the ODBC driver of the database. Use direct access to the database, or do an export to a file and import that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 13:08:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Columns-truncated-when-saving-table-using-database-and-odbc/m-p/167641#M300899</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-11-12T13:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Columns truncated when saving table using database and odbc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Columns-truncated-when-saving-table-using-database-and-odbc/m-p/167642#M300900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for this. For now I can export and import, but I would like to find a solution without manual steps. Do you have a description or a link on how to set up a direct access? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 15:22:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Columns-truncated-when-saving-table-using-database-and-odbc/m-p/167642#M300900</guid>
      <dc:creator>peter_sjogarde</dc:creator>
      <dc:date>2014-11-12T15:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Columns truncated when saving table using database and odbc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Columns-truncated-when-saving-table-using-database-and-odbc/m-p/167643#M300901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need SAS/ACCESS for your database licensed.&lt;/P&gt;&lt;P&gt;You also need the database client installed on your SAS machine, and it needs to be set up so that it can connect to the database in question.&lt;/P&gt;&lt;P&gt;Look for the documentation on SAS/ACCESS to relational databases.&lt;/P&gt;&lt;P&gt;Be prepared to spend some time getting that running.&lt;/P&gt;&lt;P&gt;I've given up on DB/2, I only use the "export to file - import file in SAS" method. This also gives you a fixed data point (the database changes permanently, the file keeps the state of its creation).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 07:16:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Columns-truncated-when-saving-table-using-database-and-odbc/m-p/167643#M300901</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-11-13T07:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Columns truncated when saving table using database and odbc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Columns-truncated-when-saving-table-using-database-and-odbc/m-p/167644#M300902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your help! I do not have a license for SAS/ACCESS at the moment, but I will consider this solution. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 07:37:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Columns-truncated-when-saving-table-using-database-and-odbc/m-p/167644#M300902</guid>
      <dc:creator>peter_sjogarde</dc:creator>
      <dc:date>2014-11-13T07:37:05Z</dc:date>
    </item>
  </channel>
</rss>

