<?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 Run multiple macros---write via code and not manually in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Run-multiple-macros-write-via-code-and-not-manually/m-p/963865#M375461</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to define macro with 12 arguments (12 months in structure YYMM).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's say that the macro is defined by:&lt;/P&gt;
&lt;P&gt;%Macro RRR(YYMM1,YYMM2,YYMM3,YYMM4,YYMM5,YYMM6,YYMM7,YYMM8,YYMM9,YYMM10,YYMM11,YYMM12);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I want to run the macro with following arguments:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%RRR(2502,2501,2412,2411,2410,2409,2408,2407,2406,2405,2404,2403)
%RRR(2501,2412,2411,2410,2409,2408,2407,2406,2405,2404,2403,2402)

%RRR(2412,2411,2410,2409,2408,2407,2406,2405,2404,2403,2402,2401)
%RRR(2411,2410,2409,2408,2407,2406,2405,2404,2403,2402,2401,2312)
%RRR(2410,2409,2408,2407,2406,2405,2404,2403,2402,2401,2312,2311)
%RRR(2409,2408,2407,2406,2405,2404,2403,2402,2401,2312,2311,2310)
%RRR(2408,2407,2406,2405,2404,2403,2402,2401,2312,2311,2310,2309)
%RRR(2407,2406,2405,2404,2403,2402,2401,2312,2311,2310,2309,2308)
%RRR(2406,2405,2404,2403,2402,2401,2312,2311,2310,2309,2308,2307)
%RRR(2405,2404,2403,2402,2401,2312,2311,2310,2309,2308,2307,2306)
%RRR(2404,2403,2402,2401,2312,2311,2310,2309,2308,2307,2306,2305)
%RRR(2403,2402,2401,2312,2311,2310,2309,2308,2307,2306,2305,2304)
%RRR(2402,2401,2312,2311,2310,2309,2308,2307,2306,2305,2304,2303)
%RRR(2401,2312,2311,2310,2309,2308,2307,2306,2305,2304,2303,2302)

%RRR(2312,2311,2310,2309,2308,2307,2306,2305,2304,2303,2302,2301)
%RRR(2311,2310,2309,2308,2307,2306,2305,2304,2303,2302,2301,2212)
%RRR(2310,2309,2308,2307,2306,2305,2304,2303,2302,2301,2212,2211)
%RRR(2309,2308,2307,2306,2305,2304,2303,2302,2301,2212,2211,2210)
%RRR(2308,2307,2306,2305,2304,2303,2302,2301,2212,2211,2210,2209)
%RRR(2307,2306,2305,2304,2303,2302,2301,2212,2211,2210,2209,2208)
%RRR(2306,2305,2304,2303,2302,2301,2212,2211,2210,2209,2208,2207)
%RRR(2305,2304,2303,2302,2301,2212,2211,2210,2209,2208,2207,2206)
%RRR(2304,2303,2302,2301,2212,2211,2210,2209,2208,2207,2206,2205)
%RRR(2303,2302,2301,2212,2211,2210,2209,2208,2207,2206,2205,2204)
%RRR(2302,2301,2212,2211,2210,2209,2208,2207,2206,2205,2204,2203)
%RRR(2301,2212,2211,2210,2209,2208,2207,2206,2205,2204,2203,2202)


%RRR(2212,2211,2210,2209,2208,2207,2206,2205,2204,2203,2202,2201)
%RRR(2211,2210,2209,2208,2207,2206,2205,2204,2203,2202,2201,2112)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question---&lt;/P&gt;
&lt;P&gt;What is the way to run macro and write it via code and not manfully type it?&lt;/P&gt;
&lt;P&gt;I mean,&amp;nbsp; what is the way to create these statements&amp;nbsp; of %RRR(.........)&amp;nbsp; &amp;nbsp;via code and not type it manually??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Apr 2025 12:28:35 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2025-04-09T12:28:35Z</dc:date>
    <item>
      <title>Run multiple macros---write via code and not manually</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Run-multiple-macros-write-via-code-and-not-manually/m-p/963865#M375461</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to define macro with 12 arguments (12 months in structure YYMM).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's say that the macro is defined by:&lt;/P&gt;
&lt;P&gt;%Macro RRR(YYMM1,YYMM2,YYMM3,YYMM4,YYMM5,YYMM6,YYMM7,YYMM8,YYMM9,YYMM10,YYMM11,YYMM12);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I want to run the macro with following arguments:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%RRR(2502,2501,2412,2411,2410,2409,2408,2407,2406,2405,2404,2403)
%RRR(2501,2412,2411,2410,2409,2408,2407,2406,2405,2404,2403,2402)

%RRR(2412,2411,2410,2409,2408,2407,2406,2405,2404,2403,2402,2401)
%RRR(2411,2410,2409,2408,2407,2406,2405,2404,2403,2402,2401,2312)
%RRR(2410,2409,2408,2407,2406,2405,2404,2403,2402,2401,2312,2311)
%RRR(2409,2408,2407,2406,2405,2404,2403,2402,2401,2312,2311,2310)
%RRR(2408,2407,2406,2405,2404,2403,2402,2401,2312,2311,2310,2309)
%RRR(2407,2406,2405,2404,2403,2402,2401,2312,2311,2310,2309,2308)
%RRR(2406,2405,2404,2403,2402,2401,2312,2311,2310,2309,2308,2307)
%RRR(2405,2404,2403,2402,2401,2312,2311,2310,2309,2308,2307,2306)
%RRR(2404,2403,2402,2401,2312,2311,2310,2309,2308,2307,2306,2305)
%RRR(2403,2402,2401,2312,2311,2310,2309,2308,2307,2306,2305,2304)
%RRR(2402,2401,2312,2311,2310,2309,2308,2307,2306,2305,2304,2303)
%RRR(2401,2312,2311,2310,2309,2308,2307,2306,2305,2304,2303,2302)

%RRR(2312,2311,2310,2309,2308,2307,2306,2305,2304,2303,2302,2301)
%RRR(2311,2310,2309,2308,2307,2306,2305,2304,2303,2302,2301,2212)
%RRR(2310,2309,2308,2307,2306,2305,2304,2303,2302,2301,2212,2211)
%RRR(2309,2308,2307,2306,2305,2304,2303,2302,2301,2212,2211,2210)
%RRR(2308,2307,2306,2305,2304,2303,2302,2301,2212,2211,2210,2209)
%RRR(2307,2306,2305,2304,2303,2302,2301,2212,2211,2210,2209,2208)
%RRR(2306,2305,2304,2303,2302,2301,2212,2211,2210,2209,2208,2207)
%RRR(2305,2304,2303,2302,2301,2212,2211,2210,2209,2208,2207,2206)
%RRR(2304,2303,2302,2301,2212,2211,2210,2209,2208,2207,2206,2205)
%RRR(2303,2302,2301,2212,2211,2210,2209,2208,2207,2206,2205,2204)
%RRR(2302,2301,2212,2211,2210,2209,2208,2207,2206,2205,2204,2203)
%RRR(2301,2212,2211,2210,2209,2208,2207,2206,2205,2204,2203,2202)


%RRR(2212,2211,2210,2209,2208,2207,2206,2205,2204,2203,2202,2201)
%RRR(2211,2210,2209,2208,2207,2206,2205,2204,2203,2202,2201,2112)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question---&lt;/P&gt;
&lt;P&gt;What is the way to run macro and write it via code and not manfully type it?&lt;/P&gt;
&lt;P&gt;I mean,&amp;nbsp; what is the way to create these statements&amp;nbsp; of %RRR(.........)&amp;nbsp; &amp;nbsp;via code and not type it manually??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 12:28:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Run-multiple-macros-write-via-code-and-not-manually/m-p/963865#M375461</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2025-04-09T12:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Run multiple macros---write via code and not manually</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Run-multiple-macros-write-via-code-and-not-manually/m-p/963871#M375462</link>
      <description>&lt;P&gt;You asked this months ago, and received good answers.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Run-macro-from-macro-var-components/td-p/954442" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Run-macro-from-macro-var-components/td-p/954442&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 12:47:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Run-multiple-macros-write-via-code-and-not-manually/m-p/963871#M375462</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-04-09T12:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Run multiple macros---write via code and not manually</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Run-multiple-macros-write-via-code-and-not-manually/m-p/963886#M375464</link>
      <description>&lt;P&gt;You have two nested loops, the outer going backwards from February 2025 to November 2022, and the inner that counts back 11 months from the starting month. Define those two loops (using SAS functions like INTNX), and then run the code for the resulting month.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 13:59:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Run-multiple-macros-write-via-code-and-not-manually/m-p/963886#M375464</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2025-04-09T13:59:44Z</dc:date>
    </item>
  </channel>
</rss>

