<?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 Problem reading raw file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Problem-reading-raw-file/m-p/141379#M261550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a new user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The directory address has been changed in this example. I can't import the data, below is the code I used and the error in the log. Please help. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data demographics;&lt;/P&gt;&lt;P&gt;infile 'C:\X\X\X\test.txt';&amp;nbsp; &lt;/P&gt;&lt;P&gt;input Gender$ Age HH;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Physical file does not exist, C:\X\X\X\test.txt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Nov 2013 09:30:48 GMT</pubDate>
    <dc:creator>apple</dc:creator>
    <dc:date>2013-11-13T09:30:48Z</dc:date>
    <item>
      <title>Problem reading raw file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-reading-raw-file/m-p/141379#M261550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a new user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The directory address has been changed in this example. I can't import the data, below is the code I used and the error in the log. Please help. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data demographics;&lt;/P&gt;&lt;P&gt;infile 'C:\X\X\X\test.txt';&amp;nbsp; &lt;/P&gt;&lt;P&gt;input Gender$ Age HH;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Physical file does not exist, C:\X\X\X\test.txt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 09:30:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-reading-raw-file/m-p/141379#M261550</guid>
      <dc:creator>apple</dc:creator>
      <dc:date>2013-11-13T09:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading raw file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-reading-raw-file/m-p/141380#M261551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you please check again if the file test.txt exits in the given path. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jagadish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 09:39:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-reading-raw-file/m-p/141380#M261551</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2013-11-13T09:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading raw file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-reading-raw-file/m-p/141381#M261552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume you're running this code using SAS EG. If so then what you must be aware of is that SAS EG is a client which generates code and sends this code to a server (eg. SASApp) for execution. As the code actually executes on the server any file paths you define must be the file paths as the server sees it. So using c:\ is the c-drive on the server and not on your desktop and therefore something like 'C:\X\X\X\test.txt' looks for such a file on the server's C-drive where the file doesn't exist - though the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you need to do is either:&lt;/P&gt;&lt;P&gt;-&amp;nbsp; Save your file on a network drive which can also be accessed by the SAS Server (eg. using a UNC path like '&lt;A&gt;\\server\x\x\x\test..txt'&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;- or use the EG import wizard under menu "file". This wizard runs on the client side (EG) and allows you to manually import the text file on your local c-drive&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 09:43:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-reading-raw-file/m-p/141381#M261552</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-11-13T09:43:47Z</dc:date>
    </item>
  </channel>
</rss>

