<?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: PROC IMPORT with FILENAME statement in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-with-FILENAME-statement/m-p/25488#M3789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where on the server do the files need to belong for it to be classified &lt;EM&gt;as on the server &lt;/EM&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Excel file does reside on the server's S: drive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not a mapped network drive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if there is a better location for me to test this, I can try, I don't think I can write to the C: drive though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Oct 2011 00:02:13 GMT</pubDate>
    <dc:creator>JohnT</dc:creator>
    <dc:date>2011-10-10T00:02:13Z</dc:date>
    <item>
      <title>PROC IMPORT with FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-with-FILENAME-statement/m-p/25483#M3784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to migrate from using PC SAS on a desktop, to Enterprise Guide connecting to a server.&amp;nbsp; The server is 64bit, the client is EG 4.3 32bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was supposed to run our old SAS jobs in the same way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now, I'm having lots of problems importing/exporting Excel files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use Excel 2007 mostly, however there are also some older Excel 2003 files sitting around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;20 FILENAME rf "s:\sasuserdata\ref\IBNR_EPA_Parameters.xls";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;21 &lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: #008000; font-size: 12pt; font-family: Courier New;"&gt;&lt;P&gt;　&lt;/P&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;P&gt;22 proc import&lt;/P&gt;&lt;P&gt;23 datafile = rf&lt;/P&gt;&lt;P&gt;24 out = IBNR_Factor2&lt;/P&gt;&lt;P&gt;25 dbms = excelcs replace;&lt;/P&gt;&lt;P&gt;26 sheet = "IBNR_Factor";&lt;/P&gt;&lt;P&gt;27 run;&lt;/P&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 12pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: Courier New;"&gt;&lt;P&gt;ERROR: Unable to open file RF. It does not exist or it is already opened exclusively by another &lt;/P&gt;&lt;P&gt;user, or you need permission to view its data.&lt;/P&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 12pt; font-family: Courier New;"&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.06 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;P&gt;28 &lt;/P&gt;&lt;P&gt;29 &lt;/P&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 12pt; font-family: Courier New;"&gt;&lt;P&gt;　&lt;/P&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;P&gt;30 proc import&lt;/P&gt;&lt;P&gt;31 datafile = "s:\sasuserdata\ref\IBNR_EPA_Parameters.xls"&lt;/P&gt;&lt;P&gt;32 out = IBNR_Factor&lt;/P&gt;&lt;P&gt;33 dbms = excelcs replace;&lt;/P&gt;&lt;P&gt;34 sheet = "IBNR_Factor";&lt;/P&gt;&lt;P&gt;35 run;&lt;/P&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 12pt; font-family: Courier New;"&gt;&lt;P&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.20 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.04 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: WORK.IBNR_FACTOR data set was successfully created.&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;"&gt;﻿&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A lot of our code uses the FILENAME statement, does this mean I cannot use it anymore, or do I need to copy the string into the PROC IMPORT datastep?&amp;nbsp; I've already changed the EXCEL DBMS to EXCELCS and am prepared to change this in all our jobs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 04:37:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-with-FILENAME-statement/m-p/25483#M3784</guid>
      <dc:creator>JohnT</dc:creator>
      <dc:date>2011-10-07T04:37:29Z</dc:date>
    </item>
    <item>
      <title>PROC IMPORT with FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-with-FILENAME-statement/m-p/25484#M3785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS EG runs on a remote server thats why when you try to import a file availble on windows, you are getting this error. This can work if you make those excel files available on the remote sas server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 18:26:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-with-FILENAME-statement/m-p/25484#M3785</guid>
      <dc:creator>newbie</dc:creator>
      <dc:date>2011-10-07T18:26:15Z</dc:date>
    </item>
    <item>
      <title>PROC IMPORT with FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-with-FILENAME-statement/m-p/25485#M3786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just out of curiosity of whether it may be the lack of a pc files' server issue, will the file(s) import if you change the DBMS to xls?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 18:37:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-with-FILENAME-statement/m-p/25485#M3786</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-10-07T18:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT with FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-with-FILENAME-statement/m-p/25486#M3787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;newbie, the folder has been mapped on the remote server too.&amp;nbsp; And the second import from the log worked, it's just when I use the FILENAME statement it doesn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;art297, when I change the DBMS to XLS is works!&amp;nbsp; So it's a start, and I might have provided a bad example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the output with art297's suggestion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;19 FILENAME rf "s:\sasuserdata\ref\IBNR_EPA_Parameters.xls";&lt;/P&gt;&lt;P&gt;20 &lt;/P&gt;&lt;P&gt;21 proc import&lt;/P&gt;&lt;P&gt;22 datafile = rf&lt;/P&gt;&lt;P&gt;23 out = IBNR_Factor2&lt;/P&gt;&lt;P&gt;24 dbms = xls replace;&lt;/P&gt;&lt;P&gt;25 sheet = "IBNR_Factor";&lt;/P&gt;&lt;P&gt;26 run;&lt;/P&gt;&lt;P&gt;NOTE: The import data set has 47 observations and 42 variables.&lt;/P&gt;&lt;P&gt;NOTE: Compressing data set WORK.IBNR_FACTOR2 increased size by 100.00 percent. &lt;/P&gt;&lt;P&gt;Compressed is 2 pages; un-compressed would require 1 pages.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;NOTE: WORK.IBNR_FACTOR2 data set was successfully created.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.01 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;27 &lt;/P&gt;&lt;P&gt;28 proc import&lt;/P&gt;&lt;P&gt;29 datafile = "s:\sasuserdata\ref\IBNR_EPA_Parameters.xls"&lt;/P&gt;&lt;P&gt;30 out = IBNR_Factor&lt;/P&gt;&lt;P&gt;31 dbms = xls replace;&lt;/P&gt;&lt;P&gt;32 sheet = "IBNR_Factor";&lt;/P&gt;&lt;P&gt;33 run;&lt;/P&gt;&lt;P&gt;NOTE: The import data set has 47 observations and 42 variables.&lt;/P&gt;&lt;P&gt;NOTE: Compressing data set WORK.IBNR_FACTOR increased size by 100.00 percent. &lt;/P&gt;&lt;P&gt;Compressed is 2 pages; un-compressed would require 1 pages.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;NOTE: WORK.IBNR_FACTOR data set was successfully created.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.00 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;^^&lt;BR /&gt;They both work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think this solution will work for Excel 2007/2010 (xlsx) filles though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Importing the same file converted to &lt;EM&gt;XLSX&lt;/EM&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;19 FILENAME rf "s:\sasuserdata\ref\IBNR_EPA_Parameters.xlsx";&lt;/P&gt;&lt;P&gt;20 &lt;/P&gt;&lt;P&gt;21 proc import&lt;/P&gt;&lt;P&gt;22 datafile = rf&lt;/P&gt;&lt;P&gt;23 out = IBNR_Factor2&lt;/P&gt;&lt;P&gt;24 dbms = xls replace;&lt;/P&gt;&lt;P&gt;25 sheet = "IBNR_Factor";&lt;/P&gt;&lt;P&gt;26 run;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Spreadsheet isn't from Excel V5 or later. Please open it in Excel and Save as V5 or later&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Requested Input File Is Invalid&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;ERROR: Import unsuccessful. See SAS Log for details.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.01 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.03 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;27 &lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;28 proc import&lt;/P&gt;&lt;P&gt;29 datafile = "s:\sasuserdata\ref\IBNR_EPA_Parameters.xlsx"&lt;/P&gt;&lt;P&gt;30 out = IBNR_Factor&lt;/P&gt;&lt;P&gt;31 dbms = xls replace;&lt;/P&gt;&lt;P&gt;32 sheet = "IBNR_Factor";&lt;/P&gt;&lt;P&gt;33 run;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Spreadsheet isn't from Excel V5 or later. Please open it in Excel and Save as V5 or later&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Requested Input File Is Invalid&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;ERROR: Import unsuccessful. See SAS Log for details.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.00 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;^^&lt;/P&gt;&lt;P&gt;Both versions fail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been told that that the port the PC file server is listening for is 9621 so I have also tried the server/port options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;19 FILENAME rf "s:\sasuserdata\ref\IBNR_EPA_Parameters.xlsx";&lt;/P&gt;&lt;P&gt;20 &lt;/P&gt;&lt;P&gt;21 proc import&lt;/P&gt;&lt;P&gt;22 datafile = rf&lt;/P&gt;&lt;P&gt;23 out = IBNR_Factor2&lt;/P&gt;&lt;P&gt;24 dbms = excelcs replace;&lt;/P&gt;&lt;P&gt;25 sheet = "IBNR_Factor";&lt;/P&gt;&lt;P&gt;26 server = "sascomp01.calliden.com.au";&lt;/P&gt;&lt;P&gt;27 port = 9621;&lt;/P&gt;&lt;P&gt;28 run;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;ERROR: Unable to open file RF. It does not exist or it is already opened exclusively by another &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;user, or you need permission to view its data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.07 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.04 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;29 &lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;30 proc import&lt;/P&gt;&lt;P&gt;31 datafile = "s:\sasuserdata\ref\IBNR_EPA_Parameters.xlsx"&lt;/P&gt;&lt;P&gt;32 out = IBNR_Factor&lt;/P&gt;&lt;P&gt;33 dbms = excelcs replace;&lt;/P&gt;&lt;P&gt;34 sheet = "IBNR_Factor";&lt;/P&gt;&lt;P&gt;35 server = "sascomp01.calliden.com.au";&lt;/P&gt;&lt;P&gt;36 port = 9621;&lt;/P&gt;&lt;P&gt;37 run;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.29 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.04 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;NOTE: WORK.IBNR_FACTOR data set was successfully created.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;^^&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it looks as though I can't use the FILENAME statement with PROC IMPORT for XLSX files?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Oct 2011 22:42:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-with-FILENAME-statement/m-p/25486#M3787</guid>
      <dc:creator>JohnT</dc:creator>
      <dc:date>2011-10-09T22:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT with FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-with-FILENAME-statement/m-p/25487#M3788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Methinks it's not that you can't use the Filename statement, but more of a server issue.&amp;nbsp; Do the xlsx files reside on the server.&amp;nbsp; I haven't read as much as I'd like on the topic but, from my understanding, that is a requirement.&amp;nbsp; I suggested the xls approach to see if you could read the original files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Oct 2011 23:19:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-with-FILENAME-statement/m-p/25487#M3788</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-10-09T23:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT with FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-with-FILENAME-statement/m-p/25488#M3789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where on the server do the files need to belong for it to be classified &lt;EM&gt;as on the server &lt;/EM&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Excel file does reside on the server's S: drive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not a mapped network drive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if there is a better location for me to test this, I can try, I don't think I can write to the C: drive though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 00:02:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-IMPORT-with-FILENAME-statement/m-p/25488#M3789</guid>
      <dc:creator>JohnT</dc:creator>
      <dc:date>2011-10-10T00:02:13Z</dc:date>
    </item>
  </channel>
</rss>

