<?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 Physical file does not exist in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Physical-file-does-not-exist/m-p/60439#M13095</link>
    <description>This is not a repost.&lt;BR /&gt;
Basically I want to create a file on the server. I tried creating teh file on my C drive and it works fine. But how do I change the code to create a file on the server? &lt;BR /&gt;
When I tried replacing C drive with the server address, it gives an error:&lt;BR /&gt;
Physical file does not exist, C:\serveraddr\test.sa_2010_08_04.sas. I am not sure why it points to the C drive? I thought because I am tetsing on PC SAS , it must be pointing to C drive, so I used a ' rsubmit %dbcon' statement before and after, but it still did not work.&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
   set mydata.schd end=eof;&lt;BR /&gt;
   file "C:/test.sa_&amp;amp;dt..sas" lrecl=2000;</description>
    <pubDate>Wed, 04 Aug 2010 20:34:28 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-08-04T20:34:28Z</dc:date>
    <item>
      <title>Physical file does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Physical-file-does-not-exist/m-p/60439#M13095</link>
      <description>This is not a repost.&lt;BR /&gt;
Basically I want to create a file on the server. I tried creating teh file on my C drive and it works fine. But how do I change the code to create a file on the server? &lt;BR /&gt;
When I tried replacing C drive with the server address, it gives an error:&lt;BR /&gt;
Physical file does not exist, C:\serveraddr\test.sa_2010_08_04.sas. I am not sure why it points to the C drive? I thought because I am tetsing on PC SAS , it must be pointing to C drive, so I used a ' rsubmit %dbcon' statement before and after, but it still did not work.&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
   set mydata.schd end=eof;&lt;BR /&gt;
   file "C:/test.sa_&amp;amp;dt..sas" lrecl=2000;</description>
      <pubDate>Wed, 04 Aug 2010 20:34:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Physical-file-does-not-exist/m-p/60439#M13095</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-04T20:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Physical file does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Physical-file-does-not-exist/m-p/60440#M13096</link>
      <description>A Windows server (I guess this is what you want) directory can be referenced like so:&lt;BR /&gt;
&lt;BR /&gt;
\\serveraddress\dir\subdir1\subdir2&lt;BR /&gt;
&lt;BR /&gt;
I find the best way to get a server directory is to map to the server in Windows Explorer, locate the directory I want to reference, then copy the full path from the Explorer address line and paste it into the SAS LIBNAME. That way no typos!.</description>
      <pubDate>Wed, 04 Aug 2010 22:30:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Physical-file-does-not-exist/m-p/60440#M13096</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2010-08-04T22:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Physical file does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Physical-file-does-not-exist/m-p/60441#M13097</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
If you execute your code on the server then you must think from then disks must be addressed how the servers sees them.&lt;BR /&gt;
&lt;BR /&gt;
c:\... would then just be a file on the local server disk - and you as a user shouldn't have write permission there. &lt;BR /&gt;
&lt;BR /&gt;
Using a unc path \\serveraddress\..... is a way to access shared disks via the network. That's where you should store you stuff. There is a big chance that you'll also be able to map such a share on your PC and so access the server generated output directly via Windows Explorer on your PC.</description>
      <pubDate>Thu, 05 Aug 2010 10:42:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Physical-file-does-not-exist/m-p/60441#M13097</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2010-08-05T10:42:40Z</dc:date>
    </item>
  </channel>
</rss>

