<?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 How to read in files from different directories in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-read-in-files-from-different-directories/m-p/21722#M4645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I need to read multiple flat files from different directories like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Directories are under e:\masterdirectory\. There are 2 levels under them, each named differently. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I want to make the following working, but couldn't. Can anyone help?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;filename 'e:\masterdirectory\*\*\*weeklyresults.weekof*';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jun 2011 14:49:02 GMT</pubDate>
    <dc:creator>odmhx</dc:creator>
    <dc:date>2011-06-27T14:49:02Z</dc:date>
    <item>
      <title>How to read in files from different directories</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-read-in-files-from-different-directories/m-p/21722#M4645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I need to read multiple flat files from different directories like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Directories are under e:\masterdirectory\. There are 2 levels under them, each named differently. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I want to make the following working, but couldn't. Can anyone help?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;filename 'e:\masterdirectory\*\*\*weeklyresults.weekof*';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 14:49:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-read-in-files-from-different-directories/m-p/21722#M4645</guid>
      <dc:creator>odmhx</dc:creator>
      <dc:date>2011-06-27T14:49:02Z</dc:date>
    </item>
    <item>
      <title>How to read in files from different directories</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-read-in-files-from-different-directories/m-p/21723#M4646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you can create a simple dataset with all the direction and use call execute to execute them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data dir;&lt;/P&gt;&lt;P&gt;input direct $50.;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;e:\masterdirectory\a\b&lt;/P&gt;&lt;P&gt;e:\masterdirectory\a\c&lt;/P&gt;&lt;P&gt;e:\masterdirectory\a\v&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;set dir;&lt;/P&gt;&lt;P&gt;call execute('filename A'||compress(_N_)||' '||compress(direct)||'\weeklyresults.weekof');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 16:22:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-read-in-files-from-different-directories/m-p/21723#M4646</guid>
      <dc:creator>goladin</dc:creator>
      <dc:date>2011-06-27T16:22:00Z</dc:date>
    </item>
    <item>
      <title>How to read in files from different directories</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-read-in-files-from-different-directories/m-p/21724#M4647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank you for your suggestion. However, the directory names are changed from week to week. What doesn't change is the masterdirectory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 16:50:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-read-in-files-from-different-directories/m-p/21724#M4647</guid>
      <dc:creator>odmhx</dc:creator>
      <dc:date>2011-06-27T16:50:11Z</dc:date>
    </item>
    <item>
      <title>How to read in files from different directories</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-read-in-files-from-different-directories/m-p/21725#M4648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Do you know what the directory names will be prior to importing?&amp;nbsp; Is there a pattern you so that you could predict what the fully qualifed file names would be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 18:13:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-read-in-files-from-different-directories/m-p/21725#M4648</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2011-06-27T18:13:47Z</dc:date>
    </item>
    <item>
      <title>How to read in files from different directories</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-read-in-files-from-different-directories/m-p/21726#M4649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do a recursive directory listing and pipe it into SAS as input.&amp;nbsp; Just change C:\temp to your top level directory.&amp;nbsp; This will list every file under that directory and capture the result in a SAS dataset.&amp;nbsp; You can then walk through the dataset to create the filenames.&amp;nbsp; I'm sure there is a more elegant approach, but this code works on my PC:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;filename DIRLIST pipe 'dir "C:\temp" /s /b';

data dirlist ;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; length buffer $256 ;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile dirlist length=reclen ;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input buffer $varying256. reclen ;
run ;

proc sql noprint;
 select count(*) into: row_count from dirlist;
quit;
run;

%put Row Count is &amp;amp;row_count..;

%macro fileloop;
 %do i = 1 %to &amp;amp;row_count;
&amp;nbsp; data _null_;
&amp;nbsp;&amp;nbsp; ptr = &amp;amp;i;
&amp;nbsp;&amp;nbsp; set dirlist point=ptr;
&amp;nbsp;&amp;nbsp; call symput('filenm',buffer);
&amp;nbsp;&amp;nbsp; stop;
&amp;nbsp; run;
&amp;nbsp; %put "I is " &amp;amp;i.;
&amp;nbsp; filename F%trim(&amp;amp;i) "&amp;amp;filenm";
 %end;
 %end;
%mend;
%fileloop;

filename _all_ list;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 19:44:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-read-in-files-from-different-directories/m-p/21726#M4649</guid>
      <dc:creator>Daryl</dc:creator>
      <dc:date>2011-06-27T19:44:24Z</dc:date>
    </item>
    <item>
      <title>How to read in files from different directories</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-read-in-files-from-different-directories/m-p/21727#M4650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My code search xls files in&amp;nbsp; very sub-directory under c:\temp ,and convert them into csv at sub-directory respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="Section1"&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN class="GramE"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;filename&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; _&lt;SPAN class="SpellE"&gt;xls&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;pipe&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: purple; background: none repeat scroll 0% 0% white;"&gt;'dir c:\temp\*.xls /s'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN class="GramE"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: navy; background: none repeat scroll 0% 0% white;"&gt;data&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; &lt;SPAN class="SpellE"&gt;xls_file&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="SpellE"&gt;&lt;SPAN class="GramE"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;infile&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; _&lt;SPAN class="SpellE"&gt;xls&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;length&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;=&lt;SPAN class="SpellE"&gt;len&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;input&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; whole &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: teal; background: none repeat scroll 0% 0% white;"&gt;$varying200.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; &lt;SPAN class="SpellE"&gt;&lt;SPAN class="GramE"&gt;len&lt;/SPAN&gt;&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;retain&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; directory;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;length&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; &lt;SPAN class="SpellE"&gt;file_name&lt;/SPAN&gt; $ &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: teal; background: none repeat scroll 0% 0% white;"&gt;200&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;if&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; strip(whole) &lt;SPAN class="SpellE"&gt;eq&lt;/SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: purple; background: none repeat scroll 0% 0% white;"&gt;'c:\temp'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;then&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;directory=scan(whole,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: teal; background: none repeat scroll 0% 0% white;"&gt;1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;,&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: purple; background: none repeat scroll 0% 0% white;"&gt;' '&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;else&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;scan(whole,-&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: teal; background: none repeat scroll 0% 0% white;"&gt;1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;,&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: purple; background: none repeat scroll 0% 0% white;"&gt;'.'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;) &lt;SPAN class="SpellE"&gt;eq&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: purple; background: none repeat scroll 0% 0% white;"&gt;'&lt;SPAN class="SpellE"&gt;xls&lt;/SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;then&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;do&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;&lt;SPAN&gt;&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;&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;&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;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;_name=&lt;SPAN class="GramE"&gt;scan(&lt;/SPAN&gt;trim(whole),-&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: teal; background: none repeat scroll 0% 0% white;"&gt;1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;,&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: purple; background: none repeat scroll 0% 0% white;"&gt;' '&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;&lt;SPAN&gt;&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;&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;&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;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="SpellE"&gt;file_name&lt;/SPAN&gt;=&lt;SPAN class="SpellE"&gt;&lt;SPAN class="GramE"&gt;catx&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: purple; background: none repeat scroll 0% 0% white;"&gt;'\'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;,&lt;SPAN class="SpellE"&gt;directory,_name&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;&lt;SPAN&gt;&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;&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;&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;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;output&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;&lt;SPAN&gt;&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;&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;SPAN&gt;&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;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;end&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;keep&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; &lt;SPAN class="SpellE"&gt;file_name&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN class="GramE"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: navy; background: none repeat scroll 0% 0% white;"&gt;run&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN class="GramE"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: navy; background: none repeat scroll 0% 0% white;"&gt;data&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;_null_&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;set&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; &lt;SPAN class="SpellE"&gt;xls_file&lt;/SPAN&gt; &lt;SPAN class="SpellE"&gt;nobs&lt;/SPAN&gt;=&lt;SPAN class="SpellE"&gt;num_obs&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;call&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; &lt;SPAN class="SpellE"&gt;symputx&lt;/SPAN&gt;(cats(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: purple; background: none repeat scroll 0% 0% white;"&gt;'&lt;SPAN class="SpellE"&gt;path'&lt;SPAN style="color: black;"&gt;,_n&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;_),&lt;SPAN class="SpellE"&gt;file_name&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;call&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; &lt;SPAN class="SpellE"&gt;symputx&lt;/SPAN&gt;(cats(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: purple; background: none repeat scroll 0% 0% white;"&gt;'&lt;SPAN class="SpellE"&gt;name'&lt;SPAN style="color: black;"&gt;,_n&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;_),scan(file_name,-&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: teal; background: none repeat scroll 0% 0% white;"&gt;2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;,&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: purple; background: none repeat scroll 0% 0% white;"&gt;'.\'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;));&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;call&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; &lt;SPAN class="SpellE"&gt;symputx&lt;/SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: purple; background: none repeat scroll 0% 0% white;"&gt;'&lt;SPAN class="SpellE"&gt;nobs'&lt;SPAN style="color: black;"&gt;,num_obs&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN class="GramE"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: navy; background: none repeat scroll 0% 0% white;"&gt;run&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;%put&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; _user_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN class="GramE"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;options&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; &lt;/SPAN&gt;&lt;SPAN class="SpellE"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;mprint&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; &lt;/SPAN&gt;&lt;SPAN class="SpellE"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;mlogic&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; &lt;/SPAN&gt;&lt;SPAN class="SpellE"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;symbolgen&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: navy; background: none repeat scroll 0% 0% white;"&gt;%macro&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; &lt;SPAN class="SpellE"&gt;&lt;STRONG&gt;&lt;EM&gt;xls_to_csv&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;%do&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; &lt;SPAN class="SpellE"&gt;i&lt;/SPAN&gt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: teal; background: none repeat scroll 0% 0% white;"&gt;1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;%to&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;&amp;amp;&lt;SPAN class="SpellE"&gt;nobs&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;proc&lt;/SPAN&gt; import &lt;SPAN class="SpellE"&gt;datafile&lt;/SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: purple; background: none repeat scroll 0% 0% white;"&gt;"&amp;amp;&amp;amp;&lt;SPAN class="SpellE"&gt;path&amp;amp;i&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; out=&amp;amp;&amp;amp;&lt;SPAN class="SpellE"&gt;name&amp;amp;i&lt;/SPAN&gt; &lt;SPAN class="SpellE"&gt;dbms&lt;/SPAN&gt;=excel replace;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;&lt;SPAN&gt;&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="SpellE"&gt;&lt;SPAN class="GramE"&gt;getnames&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;=&lt;/SPAN&gt;yes;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;&lt;SPAN&gt;&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;mixed=&lt;/SPAN&gt;yes;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;&lt;SPAN&gt;&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;run&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;proc&lt;/SPAN&gt; export data=&amp;amp;&amp;amp;&lt;SPAN class="SpellE"&gt;name&amp;amp;i&lt;/SPAN&gt;&lt;SPAN class="SpellE"&gt;outfile&lt;/SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: purple; background: none repeat scroll 0% 0% white;"&gt;"%scan(&amp;amp;&amp;amp;path&amp;amp;i,1,'.').&lt;SPAN class="SpellE"&gt;&lt;SPAN class="GramE"&gt;csv&lt;/SPAN&gt;&lt;/SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; &lt;SPAN class="SpellE"&gt;dbms&lt;/SPAN&gt;=&lt;SPAN class="SpellE"&gt;csv&lt;/SPAN&gt; &lt;SPAN class="SpellE"&gt;replace;run&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: blue; background: none repeat scroll 0% 0% white;"&gt;%end&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: navy; background: none repeat scroll 0% 0% white;"&gt;%&lt;SPAN class="GramE"&gt;mend&lt;SPAN style="color: black; font-weight: normal;"&gt; ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="MsoNormal" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; background: none repeat scroll 0% 0% white;"&gt;%&lt;SPAN class="SpellE"&gt;&lt;STRONG&gt;&lt;EM&gt;xls_to_csv&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;SPAN lang="EN-US"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 03:28:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-read-in-files-from-different-directories/m-p/21727#M4650</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-06-28T03:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to read in files from different directories</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-read-in-files-from-different-directories/m-p/21728#M4651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your codes. They are very helpful. I am using them and&amp;nbsp; I got them work in my program now!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 03:23:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-read-in-files-from-different-directories/m-p/21728#M4651</guid>
      <dc:creator>odmhx</dc:creator>
      <dc:date>2011-06-30T03:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to read in files from different directories</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-read-in-files-from-different-directories/m-p/21729#M4652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your codes. My problem is that I have two levels under main folder, which are named differently from week to week, and the flat files are also named differently from week to week.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 03:32:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-read-in-files-from-different-directories/m-p/21729#M4652</guid>
      <dc:creator>odmhx</dc:creator>
      <dc:date>2011-06-30T03:32:37Z</dc:date>
    </item>
  </channel>
</rss>

