<?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: Linux Enviroment Proc Impor File Name in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Linux-Enviroment-Proc-Impor-File-Name/m-p/640881#M21779</link>
    <description>Hi Guys i figured it out&lt;BR /&gt;in Linux!!! you need a double // before the name of the file in order to work&lt;BR /&gt;&lt;BR /&gt;proc import out= work.yes datafile="/opt//test.01.xlsx" dbms=xlsx replace;&lt;BR /&gt;run;</description>
    <pubDate>Fri, 17 Apr 2020 22:37:23 GMT</pubDate>
    <dc:creator>BernyOsuna</dc:creator>
    <dc:date>2020-04-17T22:37:23Z</dc:date>
    <item>
      <title>Linux Enviroment Proc Impor File Name</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Linux-Enviroment-Proc-Impor-File-Name/m-p/640794#M21760</link>
      <description>&lt;P&gt;So i'm in linux enviroment&lt;/P&gt;&lt;P&gt;i have this filename: text.01.xlsx&lt;/P&gt;&lt;P&gt;when I try to import&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&amp;nbsp;
datafile="/opt/test.01.xlsx"
dbms=xlsx out=simon replace;
sheet="sheet1";
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;but is not working because of the dot in the middle of the filename test.01.xlsx&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 17:35:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Linux-Enviroment-Proc-Impor-File-Name/m-p/640794#M21760</guid>
      <dc:creator>BernyOsuna</dc:creator>
      <dc:date>2020-04-17T17:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Enviroment Proc Impor File Name</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Linux-Enviroment-Proc-Impor-File-Name/m-p/640803#M21761</link>
      <description>&lt;P&gt;Can you show us the log from attempting that code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Copy the log from the Proc import through any messages related. Paste into a code box opened with the &amp;lt;/&amp;gt; icon to preserve formatting of any error message diagnostics.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 17:50:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Linux-Enviroment-Proc-Impor-File-Name/m-p/640803#M21761</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-04-17T17:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Enviroment Proc Impor File Name</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Linux-Enviroment-Proc-Impor-File-Name/m-p/640813#M21762</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG-20200417-WA0019.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38394i4AF60C7C4C4396F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMG-20200417-WA0019.jpg" alt="IMG-20200417-WA0019.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 18:05:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Linux-Enviroment-Proc-Impor-File-Name/m-p/640813#M21762</guid>
      <dc:creator>BernyOsuna</dc:creator>
      <dc:date>2020-04-17T18:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Enviroment Proc Impor File Name</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Linux-Enviroment-Proc-Impor-File-Name/m-p/640816#M21763</link>
      <description>&lt;P&gt;Probably the error message is just truncating.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most likely there is some difference in the file name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check that the file actually exists.&amp;nbsp; For example try just reading the first 10 bytes using a data step.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_; 
  infile '/opt/test.01.xlsx' recfm=f lrecl=10;
  input;
  list;
  stop;
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;Are you using SAS/Studio?&amp;nbsp; Look for the file in the Files and Folders browsing panel and copy the full filename from the properties window of the file into your program.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 18:15:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Linux-Enviroment-Proc-Impor-File-Name/m-p/640816#M21763</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-04-17T18:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Enviroment Proc Impor File Name</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Linux-Enviroment-Proc-Impor-File-Name/m-p/640820#M21765</link>
      <description>&lt;P&gt;Some things. One notice that the RED text has two / before Test.01&lt;/P&gt;
&lt;P&gt;I don't know why but if the system thinks those are there then a folder with no name is expected&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second, is /opt your mount point for data? Paths should always include a complete path from the os point of view.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Third: is this path one you are sure that your SAS system can see? If SAS executes on a server and your data is local then perhaps the server has a similar path that does not contain your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course you already checked that the case of the folder names is correct...&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 19:02:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Linux-Enviroment-Proc-Impor-File-Name/m-p/640820#M21765</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-04-17T19:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Enviroment Proc Impor File Name</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Linux-Enviroment-Proc-Impor-File-Name/m-p/640821#M21766</link>
      <description>It doesn show the ERROR any more but it brings no data into the dataset&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Apr 2020 19:08:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Linux-Enviroment-Proc-Impor-File-Name/m-p/640821#M21766</guid>
      <dc:creator>BernyOsuna</dc:creator>
      <dc:date>2020-04-17T19:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Enviroment Proc Impor File Name</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Linux-Enviroment-Proc-Impor-File-Name/m-p/640881#M21779</link>
      <description>Hi Guys i figured it out&lt;BR /&gt;in Linux!!! you need a double // before the name of the file in order to work&lt;BR /&gt;&lt;BR /&gt;proc import out= work.yes datafile="/opt//test.01.xlsx" dbms=xlsx replace;&lt;BR /&gt;run;</description>
      <pubDate>Fri, 17 Apr 2020 22:37:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Linux-Enviroment-Proc-Impor-File-Name/m-p/640881#M21779</guid>
      <dc:creator>BernyOsuna</dc:creator>
      <dc:date>2020-04-17T22:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Enviroment Proc Impor File Name</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Linux-Enviroment-Proc-Impor-File-Name/m-p/640893#M21784</link>
      <description>&lt;P&gt;I have used Linux for a long time and never seen any place where // is required in filenames.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you accidentally try to use Windows style \ in filenames then you can get it trouble on Linux because it will "eat" the first one since \ is the escape character in most unix shells. So to get a real \ you need two \\.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 23:29:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Linux-Enviroment-Proc-Impor-File-Name/m-p/640893#M21784</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-04-17T23:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Enviroment Proc Impor File Name</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Linux-Enviroment-Proc-Impor-File-Name/m-p/640896#M21787</link>
      <description>Well, I don’t have too much of experience in linux environment but it did work.&lt;BR /&gt;</description>
      <pubDate>Sat, 18 Apr 2020 00:05:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Linux-Enviroment-Proc-Impor-File-Name/m-p/640896#M21787</guid>
      <dc:creator>BernyOsuna</dc:creator>
      <dc:date>2020-04-18T00:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Enviroment Proc Impor File Name</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Linux-Enviroment-Proc-Impor-File-Name/m-p/640935#M21791</link>
      <description>&lt;P&gt;Per se, Linux (as any other UNIX) does not need the double slash. Multiple dots in filenames are a UNIX staple since the beginning (1970s), and can be used as this code, run on SAS UE (which uses Linux), proves:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import
  out=test
  datafile="/folders/myfolders/test.01.xlsx"
  dbms=xlsx
  replace
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log:&lt;/P&gt;
&lt;PRE&gt; 73         proc import
 74           out=test
 75           datafile="/folders/myfolders/test.01.xlsx"
 76           dbms=xlsx
 77           replace
 78         ;
 79         run;
 
 NOTE:    Variable Name Change.  Beob. -&amp;gt; Beob_                           
 NOTE: One or more variables were converted because the data type is not supported by the V9 engine. For more details, run with 
       options MSGLEVEL=I.
 NOTE: The import data set has 19 observations and 6 variables.
 NOTE: WORK.TEST data set was successfully created.
 NOTE:  Verwendet wurde: PROZEDUR IMPORT - (Gesamtverarbeitungszeit):
       real time           0.04 seconds
       cpu time            0.02 seconds
&lt;/PRE&gt;
&lt;P&gt;So you had something else that caused your problem.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Apr 2020 10:25:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Linux-Enviroment-Proc-Impor-File-Name/m-p/640935#M21791</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-18T10:25:33Z</dc:date>
    </item>
  </channel>
</rss>

