<?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 to use infile on an uploaded CSV file in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-use-infile-on-an-uploaded-CSV-file/m-p/616602#M8121</link>
    <description>&lt;P&gt;You copied and pasted the exact path? It is case sensitive as well.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2020 20:38:56 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-01-10T20:38:56Z</dc:date>
    <item>
      <title>How to use infile on an uploaded CSV file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-use-infile-on-an-uploaded-CSV-file/m-p/616575#M8118</link>
      <description>&lt;P&gt;I am using a demo version of SAS Viya. I want to recreate the benchmark experiments for of the hyperparameter optimization tool "autotune". The version I use is online, I haven't downloaded anything, I just log in and I have access to SAS Studio. I have uploaded the CSV files I want to use, they are under the "Explorer", in the SAS Content/Users/(my username)/dataCSV folder (See Image).&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I right click on the file and copy the file location, and use that file location for the infile statement, I get the "ERROR: Physical file does not exist" error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a sample of the code, same error same problem. What should I do? (again I am using online version I haven't downloaded anything). Thanks in advance.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.Banana;
   infile "/Users/paulxaxaxaxa@gmail.com/dataCSV/banana.csv" delimiter=',';  /* set path appropriately */
   input 
      Y
      X1
      X2 ;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Untitled.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35266i747AC6AC8B1FF8CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 18:49:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-use-infile-on-an-uploaded-CSV-file/m-p/616575#M8118</guid>
      <dc:creator>paulaxa1</dc:creator>
      <dc:date>2020-01-10T18:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to use infile on an uploaded CSV file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-use-infile-on-an-uploaded-CSV-file/m-p/616596#M8119</link>
      <description>Right click on the file, select properties and see if that doesn't have the path to the file there.</description>
      <pubDate>Fri, 10 Jan 2020 20:32:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-use-infile-on-an-uploaded-CSV-file/m-p/616596#M8119</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-01-10T20:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to use infile on an uploaded CSV file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-use-infile-on-an-uploaded-CSV-file/m-p/616599#M8120</link>
      <description>I did that I also say it in my original post. I get the Physical file does not exist" error.</description>
      <pubDate>Fri, 10 Jan 2020 20:34:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-use-infile-on-an-uploaded-CSV-file/m-p/616599#M8120</guid>
      <dc:creator>paulaxa1</dc:creator>
      <dc:date>2020-01-10T20:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to use infile on an uploaded CSV file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-use-infile-on-an-uploaded-CSV-file/m-p/616602#M8121</link>
      <description>&lt;P&gt;You copied and pasted the exact path? It is case sensitive as well.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 20:38:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-use-infile-on-an-uploaded-CSV-file/m-p/616602#M8121</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-01-10T20:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to use infile on an uploaded CSV file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-use-infile-on-an-uploaded-CSV-file/m-p/616604#M8122</link>
      <description>Another option is to use the import task not code it. The GUI allows you to point it to the file and then check the log/code to see what path it used.</description>
      <pubDate>Fri, 10 Jan 2020 20:41:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-use-infile-on-an-uploaded-CSV-file/m-p/616604#M8122</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-01-10T20:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use infile on an uploaded CSV file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-use-infile-on-an-uploaded-CSV-file/m-p/616605#M8123</link>
      <description>&lt;P&gt;I thought you had to use the FILESRVC engine with VIYA/CAS.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=lestmtsglobal&amp;amp;docsetTarget=p0qapul7pyz9hmn0zfoefj0c278a.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=lestmtsglobal&amp;amp;docsetTarget=p0qapul7pyz9hmn0zfoefj0c278a.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 20:46:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-use-infile-on-an-uploaded-CSV-file/m-p/616605#M8123</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-01-10T20:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to use infile on an uploaded CSV file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-use-infile-on-an-uploaded-CSV-file/m-p/616608#M8124</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/306479"&gt;@paulaxa1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;is right, you need to use the&amp;nbsp;FILESRVC engine to interact with data located in SAS Content (SAS Drive).&amp;nbsp; So your code would look something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename in FILESRVC folderpath='/Users/paulxaxaxaxa@gmail.com/dataCSV/' filename='banana.csv';

data work.Banana;
   infile in delimiter=','; 
   input Y X1 X2;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Does that work for you?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Brian&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 20:59:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-use-infile-on-an-uploaded-CSV-file/m-p/616608#M8124</guid>
      <dc:creator>BrianGaines</dc:creator>
      <dc:date>2020-01-10T20:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to use infile on an uploaded CSV file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-use-infile-on-an-uploaded-CSV-file/m-p/616667#M8125</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;@Tom and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159490"&gt;@BrianGaines&lt;/a&gt;&amp;nbsp;. It worked. I also managed to use %include to include another SAS code file by this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename myfldr filesrvc folderPath = '/Public/Projects/';
%include myfldr ('SAS2017-0514_benchmark_datasets.sas');&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 11 Jan 2020 10:18:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-use-infile-on-an-uploaded-CSV-file/m-p/616667#M8125</guid>
      <dc:creator>paulaxa1</dc:creator>
      <dc:date>2020-01-11T10:18:42Z</dc:date>
    </item>
  </channel>
</rss>

