<?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 do I fix a PROC EXPORT to CSV ERROR in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-fix-a-PROC-EXPORT-to-CSV-ERROR/m-p/446296#M283221</link>
    <description>&lt;P&gt;You have and extra semi-colon. It is ending the PROC statement too soon.&lt;/P&gt;
&lt;P&gt;I find that it really helps when you have a multi-line statement to place the ending semi-colon on a new line. Like you would do with an END statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC EXPORT
  DATA=ASJ2
  OUTFILE='c:\Users\jmitchel\Documents\ASJ2_Test.csv'
  DBMS=CSV
;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 16 Mar 2018 18:03:00 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2018-03-16T18:03:00Z</dc:date>
    <item>
      <title>How do I fix a PROC EXPORT to CSV ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-fix-a-PROC-EXPORT-to-CSV-ERROR/m-p/446284#M283220</link>
      <description>&lt;P&gt;Good Afternoon,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset that I am trying to export to a .csv file.&amp;nbsp; I am using SAS 9.&amp;nbsp;See below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC EXPORT DATA=ASJ2;&lt;/P&gt;&lt;P&gt;OUTFILE='c:\Users\jmitchel\Documents\ASJ2_Test.csv';&lt;/P&gt;&lt;P&gt;DBMS=CSV&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the following error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: FILE= OR TABLE=&amp;nbsp; is required and must be specified.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is causing this error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 17:50:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-fix-a-PROC-EXPORT-to-CSV-ERROR/m-p/446284#M283220</guid>
      <dc:creator>JAM50</dc:creator>
      <dc:date>2018-03-16T17:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I fix a PROC EXPORT to CSV ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-fix-a-PROC-EXPORT-to-CSV-ERROR/m-p/446296#M283221</link>
      <description>&lt;P&gt;You have and extra semi-colon. It is ending the PROC statement too soon.&lt;/P&gt;
&lt;P&gt;I find that it really helps when you have a multi-line statement to place the ending semi-colon on a new line. Like you would do with an END statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC EXPORT
  DATA=ASJ2
  OUTFILE='c:\Users\jmitchel\Documents\ASJ2_Test.csv'
  DBMS=CSV
;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Mar 2018 18:03:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-fix-a-PROC-EXPORT-to-CSV-ERROR/m-p/446296#M283221</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-03-16T18:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I fix a PROC EXPORT to CSV ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-fix-a-PROC-EXPORT-to-CSV-ERROR/m-p/446298#M283222</link>
      <description>&lt;P&gt;Thank You!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 18:09:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-fix-a-PROC-EXPORT-to-CSV-ERROR/m-p/446298#M283222</guid>
      <dc:creator>JAM50</dc:creator>
      <dc:date>2018-03-16T18:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I fix a PROC EXPORT to CSV ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-fix-a-PROC-EXPORT-to-CSV-ERROR/m-p/789291#M283223</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting a similar error (&lt;SPAN&gt; ERROR: FILE= or TABLE= is required and must be specified.)&lt;/SPAN&gt;, but I believe my ; are correct already&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc export data=_temp1.bladder;&lt;BR /&gt;outfile=/home/u59515136/Jakob/bladder.xlsx;&lt;BR /&gt;dbms=xlsx replace;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 16:32:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-fix-a-PROC-EXPORT-to-CSV-ERROR/m-p/789291#M283223</guid>
      <dc:creator>SamiMajdalanyMD</dc:creator>
      <dc:date>2022-01-10T16:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I fix a PROC EXPORT to CSV ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-fix-a-PROC-EXPORT-to-CSV-ERROR/m-p/789293#M283224</link>
      <description>&lt;P&gt;Because you have the exact same syntax error as the original post. You have inserted semi-colons that end the PROC STATEMENT too soon.&lt;/P&gt;
&lt;P&gt;But you also have another error.&amp;nbsp; You also have not quoted the physical pathname.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export data=_temp1.bladder 
  outfile="/home/u59515136/Jakob/bladder.xlsx"
  dbms=xlsx replace
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Jan 2022 16:37:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-fix-a-PROC-EXPORT-to-CSV-ERROR/m-p/789293#M283224</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-01-10T16:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I fix a PROC EXPORT to CSV ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-fix-a-PROC-EXPORT-to-CSV-ERROR/m-p/789301#M283225</link>
      <description>&lt;P&gt;Thanks! Is the physical path name the location of the file in FILES (HOME)? where do I paste that in the code please&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 16:55:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-fix-a-PROC-EXPORT-to-CSV-ERROR/m-p/789301#M283225</guid>
      <dc:creator>SamiMajdalanyMD</dc:creator>
      <dc:date>2022-01-10T16:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I fix a PROC EXPORT to CSV ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-fix-a-PROC-EXPORT-to-CSV-ERROR/m-p/789308#M283226</link>
      <description>&lt;P&gt;Since you are using PROC EXPORT the file does not have to exist before the PROC runs.&amp;nbsp; The PROC will write it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are using some interface to run your SAS code, like SAS/Studio, then the path has to one that is valid on the machine where SAS itself is running.&amp;nbsp; You can check the properties of an existing file in your HOME folder and see how the path should be specified.&amp;nbsp; Yes you can copy and paste the path as displayed by the properties tab in SAS/studio into your code to make sure you have typed it correctly.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 17:36:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-fix-a-PROC-EXPORT-to-CSV-ERROR/m-p/789308#M283226</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-01-10T17:36:30Z</dc:date>
    </item>
  </channel>
</rss>

