<?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: NOTE: In a call to the FEXIST routine, the fileref '~/practice_exer/Mth_Rep' exceeds 8 character in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/NOTE-In-a-call-to-the-FEXIST-routine-the-fileref-practice-exer/m-p/262656#M269131</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60422"&gt;@pambardar﻿&lt;/a&gt; I hope this worked for you. In any case please let me know and&amp;nbsp; please consider accepting my solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Jan.&lt;/P&gt;</description>
    <pubDate>Sat, 09 Apr 2016 11:11:05 GMT</pubDate>
    <dc:creator>jklaverstijn</dc:creator>
    <dc:date>2016-04-09T11:11:05Z</dc:date>
    <item>
      <title>NOTE: In a call to the FEXIST routine, the fileref '~/practice_exer/Mth_Rep' exceeds 8 characters, a</title>
      <link>https://communities.sas.com/t5/SAS-Programming/NOTE-In-a-call-to-the-FEXIST-routine-the-fileref-practice-exer/m-p/261916#M269128</link>
      <description>&lt;P&gt;I am getting a note in the log&lt;/P&gt;&lt;DIV class="sasNote"&gt;"NOTE: In a call to the FEXIST routine, the fileref '~/practice_exer/Mth_Rep' exceeds 8 characters, and will be truncated."&lt;/DIV&gt;&lt;P&gt;when I run the below macro&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%cr_root_sub_dir(maindir='~/practice_exer/Mth_Rep',subdir='APR2016');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The macro code is :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro cr_root_sub_dir(maindir,subdir);&lt;BR /&gt;&amp;nbsp;%put _local_;&lt;BR /&gt;&amp;nbsp;%if &amp;amp;maindir = %then&lt;BR /&gt;&amp;nbsp; &amp;nbsp;%do;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;%put 'Root directory is blank';&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;%goto exit;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;%end;&lt;BR /&gt;&amp;nbsp;%else&lt;BR /&gt;&amp;nbsp; &amp;nbsp;%do;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; %if %sysfunc(fexist(&amp;amp;maindir)) %then&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%put 'Directory &amp;amp;maindir Already Exists';&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; %else&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%do;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %let newdir = %sysfunc(dcreate(&amp;amp;maindir,'~'));&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %let newsubdir = %sysfunc(dcreate(&amp;amp;subdir,&amp;amp;maindir));&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %end;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; %end;&lt;BR /&gt;%exit:;&lt;BR /&gt;%mend cr_root_sub_dir;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 19:39:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/NOTE-In-a-call-to-the-FEXIST-routine-the-fileref-practice-exer/m-p/261916#M269128</guid>
      <dc:creator>pambardar</dc:creator>
      <dc:date>2016-04-06T19:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: NOTE: In a call to the FEXIST routine, the fileref '~/practice_exer/Mth_Rep' exceeds 8 character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/NOTE-In-a-call-to-the-FEXIST-routine-the-fileref-practice-exer/m-p/261918#M269129</link>
      <description>&lt;P&gt;fexist() takes a fileref as argument. What you provieded was a filename. Assign a fileref using filename statement or use filexist() instead of fexist().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;- Jan.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 19:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/NOTE-In-a-call-to-the-FEXIST-routine-the-fileref-practice-exer/m-p/261918#M269129</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2016-04-06T19:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: NOTE: In a call to the FEXIST routine, the fileref '~/practice_exer/Mth_Rep' exceeds 8 character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/NOTE-In-a-call-to-the-FEXIST-routine-the-fileref-practice-exer/m-p/261920#M269130</link>
      <description>&lt;P&gt;I meant FILEEXiST() of course. Two e's.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 19:53:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/NOTE-In-a-call-to-the-FEXIST-routine-the-fileref-practice-exer/m-p/261920#M269130</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2016-04-06T19:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: NOTE: In a call to the FEXIST routine, the fileref '~/practice_exer/Mth_Rep' exceeds 8 character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/NOTE-In-a-call-to-the-FEXIST-routine-the-fileref-practice-exer/m-p/262656#M269131</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60422"&gt;@pambardar﻿&lt;/a&gt; I hope this worked for you. In any case please let me know and&amp;nbsp; please consider accepting my solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Jan.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Apr 2016 11:11:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/NOTE-In-a-call-to-the-FEXIST-routine-the-fileref-practice-exer/m-p/262656#M269131</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2016-04-09T11:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: NOTE: In a call to the FEXIST routine, the fileref '~/practice_exer/Mth_Rep' exceeds 8 character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/NOTE-In-a-call-to-the-FEXIST-routine-the-fileref-practice-exer/m-p/262736#M269132</link>
      <description>Thanks. I tried with assigning fileref and it worked.</description>
      <pubDate>Sun, 10 Apr 2016 15:12:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/NOTE-In-a-call-to-the-FEXIST-routine-the-fileref-practice-exer/m-p/262736#M269132</guid>
      <dc:creator>pambardar</dc:creator>
      <dc:date>2016-04-10T15:12:25Z</dc:date>
    </item>
  </channel>
</rss>

