<?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: Help to create macro loop query in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Help-to-create-macro-loop-query/m-p/254120#M56929</link>
    <description>&lt;P&gt;Is your actual question that you don't know how to write a loop? If so, I would try a DO-loop:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;%LET YEAR=2015;

%DO  MONTH = 1 %TO 12;


PROC SQL;

CREATE TABLE WORKUSI.T01_&amp;amp;YEAR&amp;amp;&amp;amp;MONTH AS

SELECT A.CO_ATM , A.CO_CAU_OPER_ATM, A.CO_SUB_CAU_OPE_ATM , A.DB_OPER

'S' AS FL_CARTA_BANCA, FL_CARTA_POOL ,

SUM( A.IM_OPER_ATM) AS IMP, COUNT (*) AS N

FROM UNI.MOLOGATM&amp;amp;YEAR&amp;amp;&amp;amp;MONTH A

GROUP BY A.CO_ATM , A.CO_CAU_OPER_ATM, A.CO_SUB_CAU_OPE_ATM , A.DB_OPER,

FL_CARTA_POOL;

quit;

%END;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;you loose the formatting of the month macro variable, but you could write a piece of code that applies the write formatting to month.&lt;/DIV&gt;</description>
    <pubDate>Thu, 03 Mar 2016 10:44:57 GMT</pubDate>
    <dc:creator>JohndeKroon</dc:creator>
    <dc:date>2016-03-03T10:44:57Z</dc:date>
    <item>
      <title>Help to create macro loop query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-to-create-macro-loop-query/m-p/254115#M56928</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I ask for help to create a macro that repeats the query&amp;nbsp;01&amp;nbsp;to 12 value for var&amp;nbsp;MONTH.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%LET&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; YEAR=2015;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%LET&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; MONTH= 01;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;SQL&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;CREATE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;TABLE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; WORKUSI.T01_&amp;amp;YEAR&amp;amp;&amp;amp;MONTH &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;AS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;SELECT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; A.CO_ATM , A.CO_CAU_OPER_ATM, A.CO_SUB_CAU_OPE_ATM , A.DB_OPER &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'S'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;AS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; FL_CARTA_BANCA, FL_CARTA_POOL ,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; SUM( A.IM_OPER_ATM) &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;AS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; IMP, COUNT (*) &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;AS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; N &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;FROM&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; UNI.MOLOGATM&amp;amp;YEAR&amp;amp;&amp;amp;MONTH A&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;GROUP&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;BY&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; A.CO_ATM , A.CO_CAU_OPER_ATM, A.CO_SUB_CAU_OPE_ATM , A.DB_OPER,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;FL_CARTA_POOL;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;Thanks!!!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 10:28:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-to-create-macro-loop-query/m-p/254115#M56928</guid>
      <dc:creator>Cello23</dc:creator>
      <dc:date>2016-03-03T10:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help to create macro loop query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-to-create-macro-loop-query/m-p/254120#M56929</link>
      <description>&lt;P&gt;Is your actual question that you don't know how to write a loop? If so, I would try a DO-loop:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;%LET YEAR=2015;

%DO  MONTH = 1 %TO 12;


PROC SQL;

CREATE TABLE WORKUSI.T01_&amp;amp;YEAR&amp;amp;&amp;amp;MONTH AS

SELECT A.CO_ATM , A.CO_CAU_OPER_ATM, A.CO_SUB_CAU_OPE_ATM , A.DB_OPER

'S' AS FL_CARTA_BANCA, FL_CARTA_POOL ,

SUM( A.IM_OPER_ATM) AS IMP, COUNT (*) AS N

FROM UNI.MOLOGATM&amp;amp;YEAR&amp;amp;&amp;amp;MONTH A

GROUP BY A.CO_ATM , A.CO_CAU_OPER_ATM, A.CO_SUB_CAU_OPE_ATM , A.DB_OPER,

FL_CARTA_POOL;

quit;

%END;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;you loose the formatting of the month macro variable, but you could write a piece of code that applies the write formatting to month.&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Mar 2016 10:44:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-to-create-macro-loop-query/m-p/254120#M56929</guid>
      <dc:creator>JohndeKroon</dc:creator>
      <dc:date>2016-03-03T10:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help to create macro loop query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-to-create-macro-loop-query/m-p/254124#M56930</link>
      <description>&lt;P&gt;Why? &amp;nbsp;Post some test data and what you want the output to look like. &amp;nbsp;Your code below is not easy to read or maintain. &amp;nbsp;Why do you want separate datasets, that just adds to your work. &amp;nbsp;You can simplfy your code and further processing by appending the data&amp;amp;colon;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;UNI.MOLOGATM&amp;amp;YEAR&amp;amp;&amp;amp;MONTH&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;All of those together into one dataset:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;data want;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; set uni.mologatm:;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(note not tested!)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then do further processing on that one dataset, using by groups, far simpler coding, less resources, easier to maintain. &amp;nbsp;If you need the actual "data" from the dataset name - and this is one reason why you shouldn't put "data" in headers or table names, then use indsname option:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;data want;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; set uni.mologatm indsname=dsname;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; year=substr(dsname,13,4);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; month=...;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can then use year and month as by groups in further processing.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 10:56:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-to-create-macro-loop-query/m-p/254124#M56930</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-03-03T10:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help to create macro loop query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-to-create-macro-loop-query/m-p/254129#M56932</link>
      <description>&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Here's some code that will do what you need to create month values with a leading zero from 01 to 12.&lt;/FONT&gt;&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;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%LET&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; YEAR=2015;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; &lt;STRONG&gt;&lt;I&gt;loopMonth&lt;/I&gt;&lt;/STRONG&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp; %do&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; month = &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;01&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%to&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;12&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %if&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;month &amp;lt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;10&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%let&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; month = 0&amp;amp;month;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %let&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; yearmonth = &amp;amp;YEAR&amp;amp;&amp;amp;MONTH;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %put&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; ***** &amp;amp;YEAR&amp;amp;&amp;amp;MONTH ****;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* insert you PROC SQL code here */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;%end&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; loopMonth;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;%&lt;STRONG&gt;&lt;I&gt;loopMonth&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 11:07:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-to-create-macro-loop-query/m-p/254129#M56932</guid>
      <dc:creator>moorsd</dc:creator>
      <dc:date>2016-03-03T11:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help to create macro loop query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-to-create-macro-loop-query/m-p/254139#M56934</link>
      <description>&lt;P&gt;Moorsd, your macro is exactly what I need, thanks!!!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 12:34:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-to-create-macro-loop-query/m-p/254139#M56934</guid>
      <dc:creator>Cello23</dc:creator>
      <dc:date>2016-03-03T12:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help to create macro loop query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-to-create-macro-loop-query/m-p/254140#M56935</link>
      <description>&lt;P&gt;Monthly table (MOLOGATM201501 - 02 - 03 ) is 25 milion of record (25 * 12) i can't put all together into one dataset, i recive time out for unix server. thank for your&amp;nbsp;help&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 12:39:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-to-create-macro-loop-query/m-p/254140#M56935</guid>
      <dc:creator>Cello23</dc:creator>
      <dc:date>2016-03-03T12:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help to create macro loop query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-to-create-macro-loop-query/m-p/254142#M56936</link>
      <description>&lt;P&gt;I would suggest then that the best idea is to look into big data processing. &amp;nbsp;That amount of data is going to take resources regardless of the code used. &amp;nbsp;For example, proc sql is not the best option for dealing with large amounts of data, datastep is less resource hungry. &amp;nbsp;If all you are doing is a sum and a count then simple datastep with retain will be quicker and use less resource that your proc sql. &amp;nbsp;All the macro code is going to do is stop you having to type some code, it is not going to run faster or use less resource.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 12:45:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-to-create-macro-loop-query/m-p/254142#M56936</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-03-03T12:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help to create macro loop query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-to-create-macro-loop-query/m-p/254146#M56937</link>
      <description>&lt;P&gt;thanks a lot for your valuable suggestions !!!!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 12:49:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-to-create-macro-loop-query/m-p/254146#M56937</guid>
      <dc:creator>Cello23</dc:creator>
      <dc:date>2016-03-03T12:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help to create macro loop query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-to-create-macro-loop-query/m-p/254190#M56940</link>
      <description>glad I could help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Thu, 03 Mar 2016 15:20:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-to-create-macro-loop-query/m-p/254190#M56940</guid>
      <dc:creator>moorsd</dc:creator>
      <dc:date>2016-03-03T15:20:33Z</dc:date>
    </item>
  </channel>
</rss>

