<?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: SAS dataset export to a foxpro DBF in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-dataset-export-to-a-foxpro-DBF/m-p/348817#M80814</link>
    <description>&lt;P&gt;When I try that code, I get the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This DBLOAD compatibility procedure does not support full screen features.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also will this statement accept a replace command so that the DBF file is overwritten each time the SAS is executed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Apr 2017 17:59:16 GMT</pubDate>
    <dc:creator>overky</dc:creator>
    <dc:date>2017-04-10T17:59:16Z</dc:date>
    <item>
      <title>SAS dataset export to a foxpro DBF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-dataset-export-to-a-foxpro-DBF/m-p/348724#M80778</link>
      <description>&lt;P&gt;I am exporting a dataset to DBF. &amp;nbsp;The export works but there are decimals in every variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC EXPORT DATA=Test1&lt;BR /&gt;outfile='F:\\hq2sso19.dbf'&lt;BR /&gt;DBMS=DBFMEMO REPLACE;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to set a variable type in the export or is this a procedure before exporting? &amp;nbsp;I need to export as numerica fields no decimals for Foxpro Version 8.0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;overky&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 14:45:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-dataset-export-to-a-foxpro-DBF/m-p/348724#M80778</guid>
      <dc:creator>overky</dc:creator>
      <dc:date>2017-04-10T14:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS dataset export to a foxpro DBF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-dataset-export-to-a-foxpro-DBF/m-p/348812#M80813</link>
      <description>&lt;P&gt;I doubt that you will have any luck with Proc Export. Export is very limited in options and none control output formats.&lt;/P&gt;
&lt;P&gt;You have a couple choices. One if your license for SAS is correct would be to use Proc DBLOAD to write the file direct to the dbf file. That allows setting formats. Here is what an example from the documentation looks like:&lt;/P&gt;
&lt;PRE&gt;PROC DBLOAD DBMS=DBFMEMO DATA=employee;
  PATH='c:\sasdemo\employee.dbf';
  RENAME firstname = fname;
  TYPE   empid     = 'numeric(6)'
         hiredate  = 'date'
         salary    = 'numeric(10,2)'
         jobcode   = 'numeric(5)';
  RUN;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Though DBLOAD seems to imply DBase not Foxpro&lt;/P&gt;
&lt;P&gt;Another possible option would be to use the Proc Export to write a CSV file and control options on inporting that file into the DBF.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 17:47:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-dataset-export-to-a-foxpro-DBF/m-p/348812#M80813</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-04-10T17:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAS dataset export to a foxpro DBF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-dataset-export-to-a-foxpro-DBF/m-p/348817#M80814</link>
      <description>&lt;P&gt;When I try that code, I get the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This DBLOAD compatibility procedure does not support full screen features.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also will this statement accept a replace command so that the DBF file is overwritten each time the SAS is executed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 17:59:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-dataset-export-to-a-foxpro-DBF/m-p/348817#M80814</guid>
      <dc:creator>overky</dc:creator>
      <dc:date>2017-04-10T17:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS dataset export to a foxpro DBF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-dataset-export-to-a-foxpro-DBF/m-p/348873#M80845</link>
      <description>&lt;P&gt;Do your variables have formats attached? &amp;nbsp;I am pretty sure that PROC EXPORT to DBF format will use the format attached to your variable when deciding how to create the field in the DBF file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 20:22:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-dataset-export-to-a-foxpro-DBF/m-p/348873#M80845</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-04-10T20:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS dataset export to a foxpro DBF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-dataset-export-to-a-foxpro-DBF/m-p/348875#M80846</link>
      <description>&lt;P&gt;Not that I am aware of. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;My code reads in a txt file with a DLM of "\"&lt;/P&gt;&lt;P&gt;&amp;nbsp;Takes that dataset and then needs to export as a dbf.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 20:24:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-dataset-export-to-a-foxpro-DBF/m-p/348875#M80846</guid>
      <dc:creator>overky</dc:creator>
      <dc:date>2017-04-10T20:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS dataset export to a foxpro DBF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-dataset-export-to-a-foxpro-DBF/m-p/348878#M80847</link>
      <description>&lt;P&gt;So define formats for your numbers and see what happens.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data XXX ;
   infile .... .;
   input .... ;
   format AGE 3. ;
run;

proc export ....&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Apr 2017 20:28:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-dataset-export-to-a-foxpro-DBF/m-p/348878#M80847</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-04-10T20:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS dataset export to a foxpro DBF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-dataset-export-to-a-foxpro-DBF/m-p/348888#M80851</link>
      <description>&lt;P&gt;I am not sure I am explaining very well...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have:&lt;/P&gt;&lt;P&gt;500.00 &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;600.00&lt;/P&gt;&lt;P&gt;700.00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I need&lt;/P&gt;&lt;P&gt;500&lt;/P&gt;&lt;P&gt;600&lt;/P&gt;&lt;P&gt;700&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I need my dbf fields without decimals &amp;nbsp;my dataset does not have decimals but when I export to a dbf it creates decimals.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 20:48:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-dataset-export-to-a-foxpro-DBF/m-p/348888#M80851</guid>
      <dc:creator>overky</dc:creator>
      <dc:date>2017-04-10T20:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS dataset export to a foxpro DBF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-dataset-export-to-a-foxpro-DBF/m-p/348892#M80852</link>
      <description>&lt;P&gt;Have in what sense? &amp;nbsp;If you have a SAS dataset then you have IEEE 8 byte floating point numbers. In that situation there is no difference between 700.00 and 700 since they are both seven hundred.&lt;/P&gt;
&lt;P&gt;Perhaps you mean that you currently have attached a format like 6.2 to your variable so that when it prints you always see two digits to the right of the decimal place.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have ;
  input x ;
  format x 6.2 ;
cards;
500
600
700
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In that case attach a DIFFERENT format so that PROC EXPORT knows not to include the decimal places.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data to_export;
  set have ;
  format x 3. ;
run;
proc export data=to_export out='myfoxpro.dbf' dbms=dbf;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Apr 2017 20:54:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-dataset-export-to-a-foxpro-DBF/m-p/348892#M80852</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-04-10T20:54:58Z</dc:date>
    </item>
  </channel>
</rss>

