<?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 list all text file in a directory and then feed into macro? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-list-all-text-file-in-a-directory-and-then-feed-into/m-p/166332#M32049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this thread&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/message/192902#192902"&gt;https://communities.sas.com/message/192902#192902&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Apr 2014 16:22:43 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2014-04-03T16:22:43Z</dc:date>
    <item>
      <title>How to list all text file in a directory and then feed into macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-list-all-text-file-in-a-directory-and-then-feed-into/m-p/166326#M32043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Never coded myself SAS macro before.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have a list of text files in a Linux directory with the name convention like below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-family: Consolas; font-size: 16px; background-color: #ffffff;"&gt;have&lt;/SPAN&gt;_20090414.output.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope to extract the date first from all the text files within in that directory say /path/to/file/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then feed the date just created into the dt macro variable below and repeat the process as below for all the files in that directory.&amp;nbsp; Could you please tell me how to best code the macro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="font-family: Consolas; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt; dt = 20111004;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: Consolas; color: black; background-color: white; font-size: 12pt; background-position: initial initial; background-repeat: initial initial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style="color: navy; background: white; font-family: Consolas;"&gt;DATA&lt;/STRONG&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt; want.want_&amp;amp;dt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: Consolas; color: blue; background-color: white; font-size: 12pt; background-position: initial initial; background-repeat: initial initial;"&gt; LENGTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt; date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: Consolas;"&gt;8&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt; key&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: Consolas;"&gt;15&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;SPAN style="font-family: Consolas; color: blue; background: white;"&gt;INFILE&lt;/SPAN&gt; &lt;SPAN style="font-family: Consolas; color: purple; background: white;"&gt;"d:\have&amp;amp;dt..output.txt"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;SPAN style="font-family: Consolas; color: blue; background: white;"&gt;LRECL&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: Consolas;"&gt;32767&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;SPAN style="font-family: Consolas; color: blue; background: white;"&gt;ENCODING&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: purple; background: white;"&gt;"WLATIN1"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;SPAN style="font-family: Consolas; color: blue; background: white;"&gt;DLM&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: purple; background: white;"&gt;'7c'x&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: Consolas; color: blue; background-color: white; font-size: 12pt; background-position: initial initial; background-repeat: initial initial;"&gt; MISSOVER&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;SPAN style="font-family: Consolas; color: blue; background: white;"&gt;DSD&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt; ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: Consolas; color: blue; background-color: white; font-size: 12pt; background-position: initial initial; background-repeat: initial initial;"&gt; INPUT&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style="color: navy; background: white; font-family: Consolas;"&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style="color: navy; background: white; font-family: Consolas;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-family: Consolas;"&gt;sql&lt;/STRONG&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;SPAN style="font-family: Consolas; color: blue; background: white;"&gt;create&lt;/SPAN&gt; &lt;SPAN style="font-family: Consolas; color: blue; background: white;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt; want.xwant_&amp;amp;dt &lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: blue; background: white;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;SPAN style="font-family: Consolas; color: blue; background: white;"&gt;select&lt;/SPAN&gt; &lt;SPAN style="font-family: Consolas; color: blue; background: white;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt; date, key&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: Consolas; color: blue; background: white;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt; want.want_&amp;amp;dt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style="color: navy; background: white; font-family: Consolas;"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 12pt; background: white; font-family: Consolas;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I know that if the files in the directory are all SAS then it might be easier...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-family: Consolas;"&gt;data&lt;/STRONG&gt; &lt;SPAN style="font-family: Consolas; color: blue; background: white;"&gt;_null_&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: Consolas; color: blue; background: white;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt; abccont &lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: blue; background: white;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt;=last;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: Consolas; color: blue; background: white;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt; memname;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i+&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: Consolas;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: Consolas; color: blue; background: white;"&gt;call&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt; symputx(&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: purple; background: white;"&gt;'name'&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt;||trim(left(put(i,&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: Consolas;"&gt;8.&lt;/STRONG&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt;))),memname);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: Consolas; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt; last &lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: blue; background: white;"&gt;then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: Consolas; color: blue; background: white;"&gt;call&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt; symputx(&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: purple; background: white;"&gt;'count'&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt;,i);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: Consolas;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-family: Consolas;"&gt;%macro&lt;/STRONG&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt; &lt;STRONG&gt;&lt;EM&gt;transform&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: Consolas; color: blue; background: white;"&gt;%do&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt; i=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: Consolas;"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: Consolas; color: blue; background: white;"&gt;%to&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt; &amp;amp;count;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ???&lt;/SPAN&gt;&lt;SPAN style="background-color: white; color: black; font-family: Consolas; font-size: 10pt; line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: Consolas; color: blue; background: white;"&gt;%end&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: Consolas;"&gt;%mend&lt;/STRONG&gt;&lt;SPAN style="font-family: Consolas; color: black; background: white;"&gt; &lt;STRONG style="color: #000000; font-family: Consolas;"&gt;&lt;EM&gt;transform&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;%mend combdsets;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 07:30:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-list-all-text-file-in-a-directory-and-then-feed-into/m-p/166326#M32043</guid>
      <dc:creator>caveman529</dc:creator>
      <dc:date>2014-04-03T07:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to list all text file in a directory and then feed into macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-list-all-text-file-in-a-directory-and-then-feed-into/m-p/166327#M32044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As for getting the date from the filename, something like this should work:&lt;/P&gt;&lt;P&gt;filename dir_list pipe 'dir "c:\daten" /B /s /tw';&lt;/P&gt;&lt;P&gt;data temp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile dir_list;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attrib&amp;nbsp; buffer format=$2000. file_date format=date9.;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input buffer $2000.;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file_date=input(put(substr(buffer,6,8),$8.),yymmdd8.);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dataset temp will have filename and date variables.&amp;nbsp; However I am not sure on your second question though.&amp;nbsp; Do you want to put these dates into their own separate macro variables?&amp;nbsp; This doesn't seem like an efficient way of doing things, and if the are lots of files that would mean lots of macro variables.&amp;nbsp; Another way of doing it is to use the file and date list as before and let call execute generate the code from there:&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt; set temp;&lt;/P&gt;&lt;P&gt; call execute('proc sql; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; create table want.xwant_'||put(file_date,date9.)||' as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quit;');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 09:05:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-list-all-text-file-in-a-directory-and-then-feed-into/m-p/166327#M32044</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-04-03T09:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to list all text file in a directory and then feed into macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-list-all-text-file-in-a-directory-and-then-feed-into/m-p/166328#M32045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want to read the data from all the files in the directory?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so do all the files in the directory have the same record layout?&amp;nbsp; That is can the fields all be read with the same INPUT statement(s)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 10:28:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-list-all-text-file-in-a-directory-and-then-feed-into/m-p/166328#M32045</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-04-03T10:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to list all text file in a directory and then feed into macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-list-all-text-file-in-a-directory-and-then-feed-into/m-p/166329#M32046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where is Tom? This is almost the same question as in: &lt;A _jive_internal="true" href="https://communities.sas.com/thread/56245"&gt;https://communities.sas.com/thread/56245&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You could use pipe and "ls ---" commands using the X-cmd access but the SAS functions are probably nicer.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 11:38:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-list-all-text-file-in-a-directory-and-then-feed-into/m-p/166329#M32046</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-04-03T11:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to list all text file in a directory and then feed into macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-list-all-text-file-in-a-directory-and-then-feed-into/m-p/166330#M32047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. formatting is exactly the same.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 14:36:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-list-all-text-file-in-a-directory-and-then-feed-into/m-p/166330#M32047</guid>
      <dc:creator>caveman529</dc:creator>
      <dc:date>2014-04-03T14:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to list all text file in a directory and then feed into macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-list-all-text-file-in-a-directory-and-then-feed-into/m-p/166331#M32048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reading the files can be done by using wildcards in a filename statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename readit "&amp;lt;system path&amp;gt;/*.txt";&lt;/P&gt;&lt;P&gt;The use the readit or whatever you use in the filename in the infile statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 14:50:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-list-all-text-file-in-a-directory-and-then-feed-into/m-p/166331#M32048</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-04-03T14:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to list all text file in a directory and then feed into macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-list-all-text-file-in-a-directory-and-then-feed-into/m-p/166332#M32049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this thread&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/message/192902#192902"&gt;https://communities.sas.com/message/192902#192902&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 16:22:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-list-all-text-file-in-a-directory-and-then-feed-into/m-p/166332#M32049</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-04-03T16:22:43Z</dc:date>
    </item>
  </channel>
</rss>

