<?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: &amp;quot;Error: Physical File Does Not Exist&amp;quot; when trying to create output file in Programming 1 and 2</title>
    <link>https://communities.sas.com/t5/Programming-1-and-2/quot-Error-Physical-File-Does-Not-Exist-quot-when-trying-to/m-p/503730#M83</link>
    <description>&lt;P&gt;No worries! I was in the middle of typing that exact response! I have made that mistake before.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best way to learn is to make a mistake and then fix it. Nice work!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Peter&lt;/P&gt;</description>
    <pubDate>Fri, 12 Oct 2018 13:44:51 GMT</pubDate>
    <dc:creator>Panagiotis</dc:creator>
    <dc:date>2018-10-12T13:44:51Z</dc:date>
    <item>
      <title>"Error: Physical File Does Not Exist" when trying to create output file</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/quot-Error-Physical-File-Does-Not-Exist-quot-when-trying-to/m-p/503727#M81</link>
      <description>&lt;P&gt;I'm on Lesson 6 in SAS Essentials, where I am supposed to export a table into a CSV file.&lt;/P&gt;&lt;P&gt;I've followed the instructions exactly (defined the libname to create the output path) and my code has been verified to match the solution. However, I get an error message in the log saying 'Error: Physical File Does Not Exist.' The problem is, of course, that I am trying to create this file, which is why it doesn't exist. I've added the REPLACE tag to my PROC EXPORT call, but this will only apply once there's an actual file to replace.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I hardcode the exact path&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;outfile="~/EPG194/output/storm_final.csv"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(for reference, here's the entire code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc export data=pg1.storm_final&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;outfile="~/EPG194/output/storm_final.csv"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;dbms=csv replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;But using&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname outpath "~/EPG194/output";&lt;/P&gt;&lt;P&gt;proc export data=pg1.storm_final&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;outfile="&amp;amp;outpath/storm_final.csv"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;dbms=csv replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;gives me an error, pointing to a different path&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ERROR: Physical file does not exist, /pbr/biconfig/940/Lev1/SASApp/&amp;amp;outpath/storm_final.csv.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Why would there be a discrepancy in which path is being called simply by subbing in a libname&amp;nbsp;call?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 13:38:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/quot-Error-Physical-File-Does-Not-Exist-quot-when-trying-to/m-p/503727#M81</guid>
      <dc:creator>Nivi</dc:creator>
      <dc:date>2018-10-12T13:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: "Error: Physical File Does Not Exist" when trying to create output file</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/quot-Error-Physical-File-Does-Not-Exist-quot-when-trying-to/m-p/503728#M82</link>
      <description>&lt;P&gt;Never mind. I'm a dolt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;definition was supposed to be&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let outpath=~/EPG194/output;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname&amp;nbsp;outpath&amp;nbsp;"~/EPG194/output";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Amazing what happens when you pay attention to keywords, syntax, and all the little details. My bad.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 13:43:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/quot-Error-Physical-File-Does-Not-Exist-quot-when-trying-to/m-p/503728#M82</guid>
      <dc:creator>Nivi</dc:creator>
      <dc:date>2018-10-12T13:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: "Error: Physical File Does Not Exist" when trying to create output file</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/quot-Error-Physical-File-Does-Not-Exist-quot-when-trying-to/m-p/503730#M83</link>
      <description>&lt;P&gt;No worries! I was in the middle of typing that exact response! I have made that mistake before.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best way to learn is to make a mistake and then fix it. Nice work!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Peter&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 13:44:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/quot-Error-Physical-File-Does-Not-Exist-quot-when-trying-to/m-p/503730#M83</guid>
      <dc:creator>Panagiotis</dc:creator>
      <dc:date>2018-10-12T13:44:51Z</dc:date>
    </item>
  </channel>
</rss>

