<?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: dread in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/dread/m-p/310855#M67075</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data files;
length file $128;
/* Define a filename pointing to the directory */
rc = filename("myDir", "C:\Users\PG\Documents\My SAS Files\9.4");
/* Open the directory, get directory id number */
dirId = dopen("myDir");
if dirId &amp;gt; 0 then do;
    /* dnum() : nb of files in directory */
    do i = 1 to dnum(dirId);
        /* Read the ith file name from directory */
        file = dread(dirId, i);
        if length(file) &amp;gt; 0 then output;
        end;
    /* Close the open directory */
    rc = dclose(dirId);
    end;
drop rc dirId i;
run;

proc print; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 11 Nov 2016 05:29:46 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2016-11-11T05:29:46Z</dc:date>
    <item>
      <title>dread</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dread/m-p/310849#M67073</link>
      <description>&lt;P&gt;Hi dear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please help me DREAD function from basic with clear example....&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 04:58:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dread/m-p/310849#M67073</guid>
      <dc:creator>mssh2712</dc:creator>
      <dc:date>2016-11-11T04:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: dread</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dread/m-p/310854#M67074</link>
      <description>&lt;P&gt;Here is an article with examples which could be helpful, it also has dopen, dnum, dclose functions with examples&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.mwsug.org/proceedings/2012/S1/MWSUG-2012-S128.pdf" target="_self"&gt;http://www.mwsug.org/proceedings/2012/S1/MWSUG-2012-S128.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 05:24:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dread/m-p/310854#M67074</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2016-11-11T05:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: dread</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dread/m-p/310855#M67075</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data files;
length file $128;
/* Define a filename pointing to the directory */
rc = filename("myDir", "C:\Users\PG\Documents\My SAS Files\9.4");
/* Open the directory, get directory id number */
dirId = dopen("myDir");
if dirId &amp;gt; 0 then do;
    /* dnum() : nb of files in directory */
    do i = 1 to dnum(dirId);
        /* Read the ith file name from directory */
        file = dread(dirId, i);
        if length(file) &amp;gt; 0 then output;
        end;
    /* Close the open directory */
    rc = dclose(dirId);
    end;
drop rc dirId i;
run;

proc print; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Nov 2016 05:29:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dread/m-p/310855#M67075</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-11-11T05:29:46Z</dc:date>
    </item>
  </channel>
</rss>

