<?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: Run a macro on many files in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Run-a-macro-on-many-files/m-p/934686#M42005</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
do i = 1 to 300;
  call execute(cats('%nrstr(%counts(Mod',i,'_PS))'));
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 04 Jul 2024 12:16:13 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2024-07-04T12:16:13Z</dc:date>
    <item>
      <title>Run a macro on many files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Run-a-macro-on-many-files/m-p/934672#M42003</link>
      <description>&lt;P&gt;I have a number of files on which to run a macro. They are approximately 300. I have to do something like this:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;%Counts(Mod1_PS);&lt;BR /&gt;%Counts(Mod2_PS);&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Is there a way to "call" the macro on all files Mod*_PS from 1 to 300?&lt;/P&gt;
&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 10:08:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Run-a-macro-on-many-files/m-p/934672#M42003</guid>
      <dc:creator>NewUsrStat</dc:creator>
      <dc:date>2024-07-04T10:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Run a macro on many files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Run-a-macro-on-many-files/m-p/934673#M42004</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro around(nfiles=);
    %do i=1 %to &amp;amp;nfiles;
        %counts(mod&amp;amp;i._ps)
    %end;
%mend around;

%around(nfiles=300)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Jul 2024 10:18:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Run-a-macro-on-many-files/m-p/934673#M42004</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-07-04T10:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Run a macro on many files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Run-a-macro-on-many-files/m-p/934686#M42005</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
do i = 1 to 300;
  call execute(cats('%nrstr(%counts(Mod',i,'_PS))'));
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Jul 2024 12:16:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Run-a-macro-on-many-files/m-p/934686#M42005</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-07-04T12:16:13Z</dc:date>
    </item>
  </channel>
</rss>

