<?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: String data truncated to 3 characters when import from Access in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/String-data-truncated-to-3-characters-when-import-from-Access/m-p/161621#M42055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc import out=test datatable="datatable" dbms=access replace;&lt;/P&gt;&lt;P&gt;database="path";&lt;/P&gt;&lt;P&gt;scanmemo=yes;&lt;/P&gt;&lt;P&gt;usedate=no;&lt;/P&gt;&lt;P&gt;scantime=yes;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Nov 2014 18:22:38 GMT</pubDate>
    <dc:creator>ducdien</dc:creator>
    <dc:date>2014-11-07T18:22:38Z</dc:date>
    <item>
      <title>String data truncated to 3 characters when import from Access</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/String-data-truncated-to-3-characters-when-import-from-Access/m-p/161619#M42053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an Access database (accdb) with several long text variables. When I import it to SAS, they are truncated to 3 characters (including many and with a question mark, like xx?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 17:10:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/String-data-truncated-to-3-characters-when-import-from-Access/m-p/161619#M42053</guid>
      <dc:creator>ducdien</dc:creator>
      <dc:date>2014-11-07T17:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: String data truncated to 3 characters when import from Access</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/String-data-truncated-to-3-characters-when-import-from-Access/m-p/161620#M42054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will help to show the code used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 17:16:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/String-data-truncated-to-3-characters-when-import-from-Access/m-p/161620#M42054</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-11-07T17:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: String data truncated to 3 characters when import from Access</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/String-data-truncated-to-3-characters-when-import-from-Access/m-p/161621#M42055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc import out=test datatable="datatable" dbms=access replace;&lt;/P&gt;&lt;P&gt;database="path";&lt;/P&gt;&lt;P&gt;scanmemo=yes;&lt;/P&gt;&lt;P&gt;usedate=no;&lt;/P&gt;&lt;P&gt;scantime=yes;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 18:22:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/String-data-truncated-to-3-characters-when-import-from-Access/m-p/161621#M42055</guid>
      <dc:creator>ducdien</dc:creator>
      <dc:date>2014-11-07T18:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: String data truncated to 3 characters when import from Access</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/String-data-truncated-to-3-characters-when-import-from-Access/m-p/161622#M42056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you get when you run proc contents on the dataset Test?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 20:37:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/String-data-truncated-to-3-characters-when-import-from-Access/m-p/161622#M42056</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-11-07T20:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: String data truncated to 3 characters when import from Access</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/String-data-truncated-to-3-characters-when-import-from-Access/m-p/161623#M42057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I run proc content, those variables show up as "Char, length 3, format $3, informat $3"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 20:52:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/String-data-truncated-to-3-characters-when-import-from-Access/m-p/161623#M42057</guid>
      <dc:creator>ducdien</dc:creator>
      <dc:date>2014-11-07T20:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: String data truncated to 3 characters when import from Access</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/String-data-truncated-to-3-characters-when-import-from-Access/m-p/161624#M42058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suspect the MEMOSIZE option was set to 3 but you didn't show that in the code.&lt;/P&gt;&lt;P&gt;If the source data set isn't too large I would try exporting if from Access to a CSV file and look at that. If that looks okay then import that into SAS and see if there are still issues. If so, then you may issues related to the actual content.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 21:02:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/String-data-truncated-to-3-characters-when-import-from-Access/m-p/161624#M42058</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-11-07T21:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: String data truncated to 3 characters when import from Access</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/String-data-truncated-to-3-characters-when-import-from-Access/m-p/161625#M42059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to set memosize to a big number but it did not work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I exported it from Access to Excel, things looked OK (but I lost a date/time variable which only the date part showed up) and I was able to import to SAS without that truncate problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I hope we could do the import from Access without going through Excel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 21:12:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/String-data-truncated-to-3-characters-when-import-from-Access/m-p/161625#M42059</guid>
      <dc:creator>ducdien</dc:creator>
      <dc:date>2014-11-07T21:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: String data truncated to 3 characters when import from Access</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/String-data-truncated-to-3-characters-when-import-from-Access/m-p/161626#M42060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any suggestions on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 13:52:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/String-data-truncated-to-3-characters-when-import-from-Access/m-p/161626#M42060</guid>
      <dc:creator>ducdien</dc:creator>
      <dc:date>2014-11-13T13:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: String data truncated to 3 characters when import from Access</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/String-data-truncated-to-3-characters-when-import-from-Access/m-p/161627#M42061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest that you export your access data to CSV, then datastep to read it in - this gives the benefit of being able to see the data in plain text and having control over what happens at read in time.&amp;nbsp; I would also recommend not using Access, but that's just my opinion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 14:24:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/String-data-truncated-to-3-characters-when-import-from-Access/m-p/161627#M42061</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-11-13T14:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: String data truncated to 3 characters when import from Access</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/String-data-truncated-to-3-characters-when-import-from-Access/m-p/161628#M42062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure , if it could help you .&amp;nbsp;&amp;nbsp;&amp;nbsp; Check dataset option&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbtype=(yourvarname char(200))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 15:04:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/String-data-truncated-to-3-characters-when-import-from-Access/m-p/161628#M42062</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-11-13T15:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: String data truncated to 3 characters when import from Access</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/String-data-truncated-to-3-characters-when-import-from-Access/m-p/161629#M42063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By default, Proc Import uses the first 20 rows of the dataset to determine the length of the variables. If your memo field doesn't have any content for the first few records, SAS might assume that the field is short. You can try using the guessingrows option in proc import to increase the number of rows SAS uses to determine the variable size. Just add the following statement somewhere after the import statement (I used 100 rows as an example, but this can be anything):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;guessingrows=100;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really want to control the size of the variable, though, you'll probably have to use a data step instead of Proc Import.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 17:23:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/String-data-truncated-to-3-characters-when-import-from-Access/m-p/161629#M42063</guid>
      <dc:creator>ebowen</dc:creator>
      <dc:date>2014-11-13T17:23:18Z</dc:date>
    </item>
  </channel>
</rss>

