<?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: Files in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Files/m-p/12469#M1343</link>
    <description>What are you trying to do?&lt;BR /&gt;
Why do you think you need to use fexist?&lt;BR /&gt;
What do you think you mean by opening a file?&lt;BR /&gt;
Why do you want to manually manage this yourself?&lt;BR /&gt;
Have you actually read the SAS documentation for fexist?</description>
    <pubDate>Mon, 21 Apr 2008 13:49:07 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-04-21T13:49:07Z</dc:date>
    <item>
      <title>Files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Files/m-p/12467#M1341</link>
      <description>Hi, Can any one post me the code on how to find out wheather an external file exists or not if yes then the code should open the file automatically i have tried it using FEXIST but its not opening my file</description>
      <pubDate>Mon, 21 Apr 2008 11:08:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Files/m-p/12467#M1341</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-04-21T11:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Files/m-p/12468#M1342</link>
      <description>hi,&lt;BR /&gt;
&lt;BR /&gt;
use fExist to check external file and if exists, use wBrowse command&lt;BR /&gt;
&lt;BR /&gt;
e.g.:&lt;BR /&gt;
&lt;BR /&gt;
dm "wbrowse 'c:\temp\aaaa.xls'";&lt;BR /&gt;
&lt;BR /&gt;
M.</description>
      <pubDate>Mon, 21 Apr 2008 13:36:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Files/m-p/12468#M1342</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-04-21T13:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Files/m-p/12469#M1343</link>
      <description>What are you trying to do?&lt;BR /&gt;
Why do you think you need to use fexist?&lt;BR /&gt;
What do you think you mean by opening a file?&lt;BR /&gt;
Why do you want to manually manage this yourself?&lt;BR /&gt;
Have you actually read the SAS documentation for fexist?</description>
      <pubDate>Mon, 21 Apr 2008 13:49:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Files/m-p/12469#M1343</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-04-21T13:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Files/m-p/12470#M1344</link>
      <description>&amp;gt; hi,&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; use fExist to check external file and if exists, use&lt;BR /&gt;
&amp;gt; wBrowse command&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; e.g.:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; dm "wbrowse 'c:\temp\aaaa.xls'";&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; M.&lt;BR /&gt;
&lt;BR /&gt;
This is not necessarily the best way.&lt;BR /&gt;
FEXIST check's for the existence of an "external" file through a FILEREF.  FILEEXIST checks for the existence of an external file, given the file's or directory's (folder's) name.  To get a fileref, you have to have assigned the reference first, using a FILENAME statement or a FILENAME function.  It would be more appropriate to use FILEEXIST before ever attempting to use FILENAME.&lt;BR /&gt;
&lt;BR /&gt;
The FILE statement "opens" a file in a datastep.&lt;BR /&gt;
FOPEN also opens a file, but why would you want to use this?</description>
      <pubDate>Mon, 21 Apr 2008 14:01:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Files/m-p/12470#M1344</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-04-21T14:01:56Z</dc:date>
    </item>
  </channel>
</rss>

