<?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: How to import dbf file into sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561841#M157347</link>
    <description>&lt;P&gt;i have tried to export my dbf file to excel csv in vfoxpro, but then my records was too much, the excel only store some of the records but not all.&lt;/P&gt;</description>
    <pubDate>Tue, 28 May 2019 03:40:04 GMT</pubDate>
    <dc:creator>Kayla_Tan222</dc:creator>
    <dc:date>2019-05-28T03:40:04Z</dc:date>
    <item>
      <title>How to import dbf file into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561827#M157337</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to import a dbf file which I created from vfoxpro into sas.&lt;/P&gt;&lt;P&gt;Here's my code below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;import&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;datafile&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;'\C:&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;\Data\PL\DBF\PL.dbf'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;= pm.Plcm&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;REPLACE&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;dbms&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = dbf;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the system keep saying non-supported file is specified. How can I do with this problem?&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jun 2019 01:36:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561827#M157337</guid>
      <dc:creator>Kayla_Tan222</dc:creator>
      <dc:date>2019-06-01T01:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to import dbf file into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561830#M157338</link>
      <description>&lt;P&gt;Why does the file have a CSV extension?&lt;/P&gt;
&lt;P&gt;If it is a CSV file, use the CSV engine:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;dbms=csv&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 02:38:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561830#M157338</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-05-28T02:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to import dbf file into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561831#M157339</link>
      <description>&lt;P&gt;The data file type should match the DBMS= request. Try DBMS=CSV.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 02:39:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561831#M157339</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-05-28T02:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to import dbf file into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561832#M157340</link>
      <description>&lt;P&gt;Is the file a CSV file or a dbf file? Your code indicates that it is a csv file. Verify what happens if you try to open the file in notepad or similar program.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know but I found this text:&lt;/P&gt;&lt;TABLE cellspacing="2" cellpadding="4"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Note:&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;To import DBF files created with Microsoft Visual FoxPro, you must export to an appropriate dBASE format using Visual FoxPro. Import the dBASE file to SAS.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/63184/HTML/default/viewer.htm#a003102096.htm" target="_self"&gt;http://support.sas.com/documentation/cdl/en/acpcref/63184/HTML/default/viewer.htm#a003102096.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 02:40:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561832#M157340</guid>
      <dc:creator>heffo</dc:creator>
      <dc:date>2019-05-28T02:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to import dbf file into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561837#M157344</link>
      <description>&lt;P&gt;Can you verify that the file is actually a dbf file? E.g. try to import it back to vfoxpro.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 03:01:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561837#M157344</guid>
      <dc:creator>heffo</dc:creator>
      <dc:date>2019-05-28T03:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to import dbf file into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561839#M157345</link>
      <description>&lt;P&gt;Sorry, its a typo. the actual code is below with .dbf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;import&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;datafile&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;'\C:&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;\Data\PL\DBF\PL.dbf'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;= pm.Plcm&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;REPLACE&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;dbms&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = dbf;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;I unable to get the result. WHat wrong with this code?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jun 2019 01:39:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561839#M157345</guid>
      <dc:creator>Kayla_Tan222</dc:creator>
      <dc:date>2019-06-01T01:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to import dbf file into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561840#M157346</link>
      <description>&lt;P&gt;SAS ability to import from DBF files is part of SAS/ACCESS, which requires a separate licence.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could try importing the DBF into MS-Excel or MS-Access and exporting the data as a CSV. Importting from CSVs is included in Base SAS.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 03:31:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561840#M157346</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-05-28T03:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to import dbf file into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561841#M157347</link>
      <description>&lt;P&gt;i have tried to export my dbf file to excel csv in vfoxpro, but then my records was too much, the excel only store some of the records but not all.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 03:40:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561841#M157347</guid>
      <dc:creator>Kayla_Tan222</dc:creator>
      <dc:date>2019-05-28T03:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to import dbf file into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561845#M157348</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;my records was too much, the excel only store some of the records but not all.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;This is&amp;nbsp; unclear. There is no limit to the amount of data a CSV file can store. Even if Excel cannot read it all, it's there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 04:22:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561845#M157348</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-05-28T04:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to import dbf file into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561846#M157349</link>
      <description>For ex:&lt;BR /&gt;I have 1000 data in vfox&lt;BR /&gt;However when i export it to excel it only has 500 data in excel after i export it&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 May 2019 04:28:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561846#M157349</guid>
      <dc:creator>Kayla_Tan222</dc:creator>
      <dc:date>2019-05-28T04:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to import dbf file into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561848#M157350</link>
      <description>&lt;P&gt;Submit this - proc setinit; run; -&amp;nbsp; to confirm if SAS/ACCESS Interface to PC Files is licensed or not and - proc product_status; run - to confirm if it is installed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this product is installed then reading DBF files should be possible.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 04:44:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561848#M157350</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-05-28T04:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to import dbf file into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561863#M157356</link>
      <description>&lt;P&gt;Creating csv files in MS Visual Foxpro is very simple:&lt;/P&gt;
&lt;PRE&gt;USE some.dbf

COPY TO some.csv TYPE CSV&lt;/PRE&gt;
&lt;P&gt;(taken from &lt;A href="https://social.msdn.microsoft.com/Forums/en-US/9e68b095-83f5-40d4-a764-d1d1dd8ff140/convert-foxpro-table-to-quotcsvquot-file?forum=visualfoxprogeneral" target="_blank" rel="noopener"&gt;https://social.msdn.microsoft.com/Forums/en-US/9e68b095-83f5-40d4-a764-d1d1dd8ff140/convert-foxpro-table-to-quotcsvquot-file?forum=visualfoxprogeneral&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you just inspect the file with a proper editor (eg notepad++) to see the structure and content. From that, write the necessary data step. No license beyond Base needed.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 07:18:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-dbf-file-into-sas/m-p/561863#M157356</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-05-28T07:18:09Z</dc:date>
    </item>
  </channel>
</rss>

