<?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 of csv succesfull but not xlsx in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Import-of-csv-succesfull-but-not-xlsx/m-p/533187#M6157</link>
    <description>&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;No such file or directory.&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;I am not sure what else we can say on the matter, it is telling you there is not file named that, in the location you have provided.&amp;nbsp; Only oyu have access to your systems to confirm this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In terms of data import, CSV is far and away the better medium, being portable across systems, plain text, so readable without proprietary software etc.&amp;nbsp; I would hihgly recommend to use CSV, or XML/Json/Html or one of those types.&amp;nbsp; I would also highly recommend to avoid using proc import - this is a guessing procedure, which will guess what it thinks your data should look like.&amp;nbsp; As you are the best person to know what your data should look like (and of course you will have an import agreement stating formats/lengths etc. wont you), you should input this information into a datastep (you can take the one generated by the proc import from the log and use that as a basis).&amp;nbsp; That way every import of the data will conform to the same structure (or fail) and will be clean and repeatable.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Feb 2019 11:03:33 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2019-02-06T11:03:33Z</dc:date>
    <item>
      <title>Import of csv succesfull but not xlsx</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Import-of-csv-succesfull-but-not-xlsx/m-p/533182#M6155</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this first piece of code that works fine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile="~/NAS/A/myfolder/myfile.csv"
&amp;nbsp; &amp;nbsp;out=work.myfile
&amp;nbsp; &amp;nbsp;dbms=csv
&amp;nbsp; &amp;nbsp;replace;
&amp;nbsp; &amp;nbsp;delimiter=";";
&amp;nbsp; &amp;nbsp;getnames=no;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and a roughly similar piec of code, just trying to import a xlsx instead of csv, in the same folder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile="~/NAS/A/myfolder/anotherfile.xlsx"
&amp;nbsp; &amp;nbsp;out=work.myfile
&amp;nbsp; &amp;nbsp;dbms=xlsx
&amp;nbsp; &amp;nbsp;replace;
&amp;nbsp; &amp;nbsp;getnames=yes;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that tells me stuff like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;712       libname _XLSXIMP xlsx "/home/SXXXXXX/NAS/A/Myfolder
712     ! /anotherfile.xlsx
&lt;FONT color="#FF0000"&gt;ERROR: Could not load excel spreadsheet "/home/SXXXXXX/NAS/A/Myfolder/anotherfile.xlsx": No such file o
       directory.&lt;/FONT&gt;
713       header=YES
714       ;
715       data work.anotherfile;
716       set _XLSXIMP.'_firstsheet_'n;
              ^
&lt;FONT color="#FF0000"&gt;ERROR: Library "_XLSXIMP" is not known&lt;/FONT&gt;
717       ;
718       run;

NOTE: DATA step was not executed because of errors detected
NOTE: The data step took :
      real time : 0.000
      cpu time  : 0.001


719       libname _XLSXIMP clear;
WARNING: The library "_XLSXIMP" is not defined, so cannot be cleared
720       quit; run;
721       ODS _ALL_ CLOSE;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyhow I can stick with csv if I'm stuck but I thought you guys might get me out of that one&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Gorz&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 10:27:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Import-of-csv-succesfull-but-not-xlsx/m-p/533182#M6155</guid>
      <dc:creator>Gorzyne</dc:creator>
      <dc:date>2019-02-06T10:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Import of csv succesfull but not xlsx</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Import-of-csv-succesfull-but-not-xlsx/m-p/533187#M6157</link>
      <description>&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;No such file or directory.&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;I am not sure what else we can say on the matter, it is telling you there is not file named that, in the location you have provided.&amp;nbsp; Only oyu have access to your systems to confirm this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In terms of data import, CSV is far and away the better medium, being portable across systems, plain text, so readable without proprietary software etc.&amp;nbsp; I would hihgly recommend to use CSV, or XML/Json/Html or one of those types.&amp;nbsp; I would also highly recommend to avoid using proc import - this is a guessing procedure, which will guess what it thinks your data should look like.&amp;nbsp; As you are the best person to know what your data should look like (and of course you will have an import agreement stating formats/lengths etc. wont you), you should input this information into a datastep (you can take the one generated by the proc import from the log and use that as a basis).&amp;nbsp; That way every import of the data will conform to the same structure (or fail) and will be clean and repeatable.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 11:03:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Import-of-csv-succesfull-but-not-xlsx/m-p/533187#M6157</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2019-02-06T11:03:33Z</dc:date>
    </item>
  </channel>
</rss>

