<?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 check if a PC file exists without using the FileExists function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-if-a-PC-file-exists-without-using-the-FileExists/m-p/777112#M247187</link>
    <description>&lt;P&gt;The SAS &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/p0gh473azqo3han1edlhbyt04gxa.htm" target="_blank" rel="noopener"&gt;FEXIST&lt;/A&gt; function doesn't require OS command line access.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Oct 2021 19:25:17 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2021-10-28T19:25:17Z</dc:date>
    <item>
      <title>How to check if a PC file exists without using the FileExists function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-if-a-PC-file-exists-without-using-the-FileExists/m-p/777107#M247186</link>
      <description>&lt;P&gt;I am looking for a way to verify that a PC file (e.g. test.csv) exists before I attempt to read it into my process through a data step.&amp;nbsp; &amp;nbsp;The obstacle is that I am not able to use the FILEEXISTS function as the my company has disabled users' ability to use CMD line operations (per corporate policy).&amp;nbsp; I am hoping that someone else has an alternative method to accomplish the same objective.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance for your consideration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 19:04:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-check-if-a-PC-file-exists-without-using-the-FileExists/m-p/777107#M247186</guid>
      <dc:creator>Michael_W</dc:creator>
      <dc:date>2021-10-28T19:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if a PC file exists without using the FileExists function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-if-a-PC-file-exists-without-using-the-FileExists/m-p/777112#M247187</link>
      <description>&lt;P&gt;The SAS &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/p0gh473azqo3han1edlhbyt04gxa.htm" target="_blank" rel="noopener"&gt;FEXIST&lt;/A&gt; function doesn't require OS command line access.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 19:25:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-check-if-a-PC-file-exists-without-using-the-FileExists/m-p/777112#M247187</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-10-28T19:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if a PC file exists without using the FileExists function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-if-a-PC-file-exists-without-using-the-FileExists/m-p/777122#M247192</link>
      <description>&lt;P&gt;Why would FILEEXISTS() not work because of the NOXCMD option?&lt;/P&gt;
&lt;P&gt;It seems to work for me.&lt;/P&gt;
&lt;PRE&gt;1    %put %sysfunc(getoption(xcmd));
NOXCMD
2    %put %sysfunc(fileexist(~/autoexec.sas));
1&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Oct 2021 21:11:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-check-if-a-PC-file-exists-without-using-the-FileExists/m-p/777122#M247192</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-10-28T21:11:26Z</dc:date>
    </item>
  </channel>
</rss>

