<?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: multiple file processing in data step in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/multiple-file-processing-in-data-step/m-p/133612#M27149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it did not work well..&lt;/P&gt;&lt;P&gt;I got the error message below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error.jpg" class="jive-image-thumbnail jive-image" height="460" src="https://communities.sas.com/legacyfs/online/3179_error.jpg" width="856" /&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea why this happened?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Mar 2013 09:50:01 GMT</pubDate>
    <dc:creator>jhhuh</dc:creator>
    <dc:date>2013-03-14T09:50:01Z</dc:date>
    <item>
      <title>multiple file processing in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/multiple-file-processing-in-data-step/m-p/133610#M27147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to change a variable in a data.&lt;/P&gt;&lt;P&gt;But I want to do the same job for multiple files in a directory.&lt;/P&gt;&lt;P&gt;I kind of feel that I can do this efficiently if I use macro, but I do not know exactly becuase I am&amp;nbsp; just a beginner of SAS macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAS code for one file is..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;set pars.prod11_beer;&lt;/P&gt;&lt;P&gt;COLUPC = 1*UPC&lt;/P&gt;&lt;P&gt;drop UPC; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice or suggetion from you would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 08:19:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/multiple-file-processing-in-data-step/m-p/133610#M27147</guid>
      <dc:creator>jhhuh</dc:creator>
      <dc:date>2013-03-14T08:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: multiple file processing in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/multiple-file-processing-in-data-step/m-p/133611#M27148</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;Please try the below macro &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro dir(name=,file=,var=,var2=);&lt;/P&gt;&lt;P&gt;data &amp;amp;name;&lt;/P&gt;&lt;P&gt;set pars..&amp;amp;file;&lt;/P&gt;&lt;P&gt;&amp;amp;var= 1*&amp;amp;var2&lt;/P&gt;&lt;P&gt;drop &amp;amp;var2; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%dir(name=test, file=prod11_beer,var=COLUPC,var2=UPC);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jagadish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 08:30:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/multiple-file-processing-in-data-step/m-p/133611#M27148</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2013-03-14T08:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: multiple file processing in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/multiple-file-processing-in-data-step/m-p/133612#M27149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it did not work well..&lt;/P&gt;&lt;P&gt;I got the error message below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error.jpg" class="jive-image-thumbnail jive-image" height="460" src="https://communities.sas.com/legacyfs/online/3179_error.jpg" width="856" /&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea why this happened?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 09:50:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/multiple-file-processing-in-data-step/m-p/133612#M27149</guid>
      <dc:creator>jhhuh</dc:creator>
      <dc:date>2013-03-14T09:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: multiple file processing in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/multiple-file-processing-in-data-step/m-p/133613#M27150</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;Please remove the additional &lt;STRONG&gt;.&lt;/STRONG&gt; from pars&lt;STRONG&gt;..&lt;/STRONG&gt;&amp;amp;file, there should be a single &lt;STRONG&gt;. like this &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;pars&lt;STRONG&gt;.&lt;/STRONG&gt;&amp;amp;file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try and let me know the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jagadish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 09:57:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/multiple-file-processing-in-data-step/m-p/133613#M27150</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2013-03-14T09:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: multiple file processing in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/multiple-file-processing-in-data-step/m-p/133614#M27151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;P&gt;It worked beautifully!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jin-Hee Huh &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 15:30:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/multiple-file-processing-in-data-step/m-p/133614#M27151</guid>
      <dc:creator>jhhuh</dc:creator>
      <dc:date>2013-03-14T15:30:14Z</dc:date>
    </item>
  </channel>
</rss>

