<?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: import /export error in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/186927#M14313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using below code but still not working,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc import out=abc&lt;/P&gt;&lt;P&gt;datatable='xyz'&lt;/P&gt;&lt;P&gt;dbms=access replace;&lt;/P&gt;&lt;P&gt;database='f:\sam\a\xyz.mdb';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;getting error like,&lt;/P&gt;&lt;P&gt;ERROR: file= or table= is required and must be specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't know what is missing...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jan 2014 23:02:01 GMT</pubDate>
    <dc:creator>sas_9</dc:creator>
    <dc:date>2014-01-02T23:02:01Z</dc:date>
    <item>
      <title>import /export error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/186924#M14310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends - I am using sas 9.1 and have mdb 97-2003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am importing mdb files into sas dataset in work library and then exporting that sas dataset into mdb file into another folder using below code. But i am getting an error saying that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"ERROR: FILE= or TABLE= is required and must be specified"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;EM&gt;but same code working for .xls file&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me to figure what's wring with my code please!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname a 'f:\sam\a'; /*test.mdb file is here*/&lt;/P&gt;&lt;P&gt;libname b 'f:\sam\b'; /*getting same mdb file here*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc import datafile='f:\sam\a\test.mdb'&lt;/P&gt;&lt;P&gt;out=abc&lt;/P&gt;&lt;P&gt;dbms=access replace;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc export data=abc&lt;/P&gt;&lt;P&gt;outfile='f:\sam\b\tets.mdb'&lt;/P&gt;&lt;P&gt;dbms=access replace;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 20:31:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/186924#M14310</guid>
      <dc:creator>sas_9</dc:creator>
      <dc:date>2014-01-02T20:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: import /export error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/186925#M14311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/63181/HTML/default/viewer.htm#p0jf3o1i67m044n1j0kz51ifhpvs.htm" title="http://support.sas.com/documentation/cdl/en/acpcref/63181/HTML/default/viewer.htm#p0jf3o1i67m044n1j0kz51ifhpvs.htm"&gt;SAS/ACCESS(R) 9.3 Interface to PC Files: Reference&lt;/A&gt; See datatable as being different between Excel/Access&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 21:02:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/186925#M14311</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-01-02T21:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: import /export error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/186926#M14312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or &lt;A href="http://support.sas.com/techsup/technote/ts793.pdf"&gt;http://support.sas.com/techsup/technote/ts793.pdf&lt;/A&gt; for 9.1.3 and higher examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically you are missing the datatable="access table name" parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 21:15:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/186926#M14312</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-01-02T21:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: import /export error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/186927#M14313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using below code but still not working,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc import out=abc&lt;/P&gt;&lt;P&gt;datatable='xyz'&lt;/P&gt;&lt;P&gt;dbms=access replace;&lt;/P&gt;&lt;P&gt;database='f:\sam\a\xyz.mdb';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;getting error like,&lt;/P&gt;&lt;P&gt;ERROR: file= or table= is required and must be specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't know what is missing...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 23:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/186927#M14313</guid>
      <dc:creator>sas_9</dc:creator>
      <dc:date>2014-01-02T23:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: import /export error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/186928#M14314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;more surprisingly - if i use IMPORT&amp;nbsp; wizard - it's working fine...:-) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 00:14:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/186928#M14314</guid>
      <dc:creator>sas_9</dc:creator>
      <dc:date>2014-01-03T00:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: import /export error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/186929#M14315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Than you can save the source the wizard generates and compare that whith what you have tried.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 06:25:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/186929#M14315</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-01-03T06:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: import /export error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/186930#M14316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc import datafile='f:\sam\a\test.mdb'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;datatable="&amp;amp;table_name"&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;out=abc&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;dbms=access replace;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc export data=abc&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;outfile='f:\sam\b\tets.mdb'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;outtable="&amp;amp;table_name"&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;dbms=access replace;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 12:25:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/186930#M14316</guid>
      <dc:creator>Vish33</dc:creator>
      <dc:date>2014-01-03T12:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: import /export error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/186931#M14317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have an extra semicolon after 'replace'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 15:10:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/186931#M14317</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2014-01-03T15:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: import /export error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/186932#M14318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vish - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think we cannot mention file= and table= options at same time - you will get an error...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let table_name=test.mdb;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc import &lt;STRONG&gt;datafile&lt;/STRONG&gt;='f:\sam\a\test.mdb'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;datatable&lt;/STRONG&gt;="&amp;amp;table_name"&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;out=abc&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;dbms=access replace;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 17:18:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/186932#M14318</guid>
      <dc:creator>sas_9</dc:creator>
      <dc:date>2014-01-03T17:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: import /export error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/186933#M14319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for posting your comments on my issue...I am good for now...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run same piece of code on different server and it absolutely fine - nothing wrong at all but i am still getting an error where i was running previously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let table_a=f:\sandip\a\xyz.mdb;&lt;/P&gt;&lt;P&gt;%let table_b=f:\sandip\b\xyz.mdb;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options symbolgen;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc import&lt;/P&gt;&lt;P&gt;out=def&lt;/P&gt;&lt;P&gt;datatable="xyz"&lt;/P&gt;&lt;P&gt;dbms=access replace;&lt;/P&gt;&lt;P&gt;database="&amp;amp;table_a";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc export data=def&lt;/P&gt;&lt;P&gt;outtable="xyz"&lt;/P&gt;&lt;P&gt;dbms=access replace;&lt;/P&gt;&lt;P&gt;database="&amp;amp;table_b";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*-----------this code ran fine with different server------------Thanks a lot---------------*/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 18:48:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/186933#M14319</guid>
      <dc:creator>sas_9</dc:creator>
      <dc:date>2014-01-03T18:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: import /export error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/186934#M14320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like a wrong error message as you are pointing now to an inconsistent machine installation.&lt;/P&gt;&lt;P&gt;That is an other issue type. Good that you are able to continue the work.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jan 2014 08:11:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/186934#M14320</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-01-04T08:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: import /export error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/271799#M18835</link>
      <description>Hello Friends,

I have same kind of issue when am trying to import and export excel files from Grid node to PC file server.
below are the codes am using,but not sure where its going wrong.

proc export 
  data= sashelp.prdsale; 
  dbms=xls;
  outfile="D:\pcfile\prdsale.xls";
  port=xxxx;
  server="xxxxxxxxx";
  sheet=sheet1; 
run;


proc import dbms=excelcs
  datafile='D:\pcfile\Demo.xls' 
  out=\tmp REPLACE;
port=xxxx;
server="xxxxxx";
  sheet=sheet1; 
run; 


These are the error am getting,any suggestions or advice would be really appreciated.

Proc import dbms=excelcs
data='D:\pcfile\Demo.xls'
----
22
76

Error 22-322 Syntax error,expecting onc eof the following: ;,DATAFILE,DATATABLE,DBMS,DEBUG,FILE
Error 76-322 Syntax error,statement will be ignored

outfile=\tmp REPLACE;
port=xxxx;
server="xxxxxxx";
run;

server



proc export
data=sashelp.prdsale;
Error:FILE or TABLE is required and must be specified.


dbms=xls;
file="D:\pcfile\prdsale.xls";
port=xxxx;
server="xxxxxx";
sheet=sheet1;
run;

Thank you</description>
      <pubDate>Thu, 19 May 2016 18:12:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/271799#M18835</guid>
      <dc:creator>sasprofile</dc:creator>
      <dc:date>2016-05-19T18:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: import /export error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/271905#M18848</link>
      <description>This thread is more than two years old.&lt;BR /&gt;Check your syntax.</description>
      <pubDate>Fri, 20 May 2016 06:04:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/import-export-error/m-p/271905#M18848</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-05-20T06:04:53Z</dc:date>
    </item>
  </channel>
</rss>

