<?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: how to get macro variables from a dynamic value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353318#M82465</link>
    <description>&lt;P&gt;Without knowing more information, I'm not sure we can offer a suggestion that would help here.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depending on how variables are being calculated can use you use the colon short cut at all?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;keep a_:;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Apr 2017 17:27:18 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-04-25T17:27:18Z</dc:date>
    <item>
      <title>how to get macro variables from a dynamic value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353265#M82451</link>
      <description>&lt;P&gt;i have a dataset:eco which has some variables like a_1 a_2 a_3, etc.. this is what I want to get:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;1,&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &lt;STRONG&gt;&lt;I&gt;aa&lt;/I&gt;&lt;/STRONG&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;data final_d;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp; do m = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; to &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;100&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&amp;nbsp;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp; set eco(keep=a_&amp;amp;m); /*&amp;amp;m doesn't work here, any good way to have macro variable to keep the dynamic m value?*/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;%&lt;STRONG&gt;&lt;I&gt;aa&lt;/I&gt;&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;i know if i change to:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;2,&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &lt;STRONG&gt;&lt;I&gt;aa&lt;/I&gt;&lt;/STRONG&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;data final_d;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp; %do m = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; %to &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;100&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&amp;nbsp;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp; set eco(keep=a_&amp;amp;m); &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;%&lt;STRONG&gt;&lt;I&gt;aa&lt;/I&gt;&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;i can get the variables a_1 to a_100 very easily. but since the old code used lots of&amp;nbsp;m in the program, i don't want to change. so any good way that I can get a_1 to a_100 in code 1, which I don't change do to %do, but to get the macro variables? thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 16:22:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353265#M82451</guid>
      <dc:creator>Sarah2</dc:creator>
      <dc:date>2017-04-25T16:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to get macro variables from a dynamic value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353275#M82453</link>
      <description>&lt;P&gt;In your&lt;/P&gt;&lt;P&gt;2. Are you trying to generate 100 set statements? or you want 100 vairables in a series in your keep= dataset option&lt;/P&gt;&lt;P&gt;what is that you actually want to accomplish? Please give more details with samples. Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 16:32:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353275#M82453</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2017-04-25T16:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to get macro variables from a dynamic value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353288#M82455</link>
      <description>&lt;P&gt;my purpose is to easily use macro variable a_&amp;amp;m, because I will use this variable for calculating. i don't want to have my datasets too big, so when m is 1, i will only get a_1 to do calculate. and when m is 2, i use a_2 to do calculate. so m is changing, it's dynamic in do loop. hope this helps. thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 16:44:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353288#M82455</guid>
      <dc:creator>Sarah2</dc:creator>
      <dc:date>2017-04-25T16:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to get macro variables from a dynamic value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353289#M82456</link>
      <description>&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &lt;STRONG&gt;&lt;I&gt;aa&lt;/I&gt;&lt;/STRONG&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;data final_d;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp; %do m = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; %to &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;100&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&amp;nbsp;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp; set eco(keep=a_&amp;amp;m); &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;****************will do calculation with a_&amp;amp;m variable*********&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;%&lt;STRONG&gt;&lt;I&gt;aa&lt;/I&gt;&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but if i use do, i couldn't get a_&amp;amp;m variable. so how to get this variable in do loop. thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 16:46:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353289#M82456</guid>
      <dc:creator>Sarah2</dc:creator>
      <dc:date>2017-04-25T16:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to get macro variables from a dynamic value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353301#M82460</link>
      <description>&lt;P&gt;There are a few ways to go about this.&amp;nbsp; You could create 100 macro variables.&amp;nbsp; However, if you are really using a %DO loop for processing your calculations, it would be simpler to create a single macro variable and change its value.&amp;nbsp; For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro aa;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; %do m=1 %to 100;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data _null_;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set eco;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symputx('m_value', a_&amp;amp;m);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ** Further processing that calculates using &amp;amp;M_VALUE;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; %end;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%mend aa;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This assumes you only have one observation in ECO.&amp;nbsp; If that's not the case, it would be very unclear what should go into the macro variable and how you would calculate.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 16:58:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353301#M82460</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-04-25T16:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to get macro variables from a dynamic value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353303#M82461</link>
      <description>&lt;P&gt;yes, my code 2 can simple solve this problem. but, since i have lot of m has been used in my whole program, i can't change m to &amp;amp;m by using %do. so i have to keep do m=1 to 100; and also try to have a way to use macro variables to store this dynamic&amp;nbsp;m value.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 17:03:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353303#M82461</guid>
      <dc:creator>Sarah2</dc:creator>
      <dc:date>2017-04-25T17:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to get macro variables from a dynamic value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353316#M82464</link>
      <description>&lt;P&gt;OK, again this assumes there is just one observation in ECO:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;/P&gt;
&lt;P&gt;set eco;&lt;/P&gt;
&lt;P&gt;array a {100} a_1-a_100;&lt;/P&gt;
&lt;P&gt;do i=1 to 100;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; call symputx('m_' || left(put(i, 3.)), a{i});&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It creates 100 macro variables, where &amp;amp;M_1 holds the value of a_1, &amp;amp;M_2 holds the value of a_2, etc.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 17:26:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353316#M82464</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-04-25T17:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to get macro variables from a dynamic value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353318#M82465</link>
      <description>&lt;P&gt;Without knowing more information, I'm not sure we can offer a suggestion that would help here.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depending on how variables are being calculated can use you use the colon short cut at all?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;keep a_:;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 17:27:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353318#M82465</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-25T17:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to get macro variables from a dynamic value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353357#M82483</link>
      <description>&lt;P&gt;your array code can help to solve the problem. but my example here is not only for one array, so still, i want to have a macro variable to hold m value when m is changing in do m=1 to 100. i tried to use call symput too, but it has to been in data step, doesn't work in do i=1 to 100; call symput(k, m);&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 18:09:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353357#M82483</guid>
      <dc:creator>Sarah2</dc:creator>
      <dc:date>2017-04-25T18:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to get macro variables from a dynamic value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353366#M82486</link>
      <description>&lt;P&gt;There are lots of ways to do all the things you are talking about, but I can't spend my time guessing which ones you will need.&amp;nbsp; You will have to show some code that illustrates what you are trying to do.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 18:21:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353366#M82486</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-04-25T18:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to get macro variables from a dynamic value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353371#M82487</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;STRONG&gt;i understand.. i have a long code under do loop, so my purpose is not changing do m=1 to 100; when m is 1, i want to keep only a_1 in eco. this a_*, * changes depending on m. hope this explain is better. &lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;STRONG&gt;i tried to use your array, so you will have &amp;amp;m_1 &amp;amp;m_2 for macro variables. now when we try to use these variable in: do a=1 to 100; set eco(keep=&amp;amp;m_*) ---how do you apply a=1 to the macro variable &amp;amp;m_1?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 18:30:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353371#M82487</guid>
      <dc:creator>Sarah2</dc:creator>
      <dc:date>2017-04-25T18:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to get macro variables from a dynamic value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353373#M82488</link>
      <description>&lt;P&gt;This creates 100 variables from A1 to A100.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL OUTOBS = 100;
CREATE TABLE IDS AS
SELECT MONOTONIC() AS ID
FROM SASHELP.STOCKS;
QUIT;

PROC SQL;
SELECT 0 INTO: A1-:A100 FROM IDS;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hacky? &amp;nbsp;Yes, but it works.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 18:30:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353373#M82488</guid>
      <dc:creator>thomp7050</dc:creator>
      <dc:date>2017-04-25T18:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to get macro variables from a dynamic value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353378#M82489</link>
      <description>&lt;P&gt;If sounds like you want to pass in an upper bound on the number of similarly named variables.&lt;/P&gt;
&lt;P&gt;Looks like a simple use of a varaible list. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you could use the variable list in a KEEP= dataset option.&lt;/P&gt;
&lt;P&gt;Or anywhere else that you need to provide a list of variables. Like in a ARRAY statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let m=10;
data want ;
   set have(keep=a_1 - a_&amp;amp;m);
   array avars a_1 - a_&amp;amp;m;
   do i=1 to &amp;amp;m ;
    ...
   end;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Apr 2017 18:39:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353378#M82489</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-04-25T18:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to get macro variables from a dynamic value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353421#M82504</link>
      <description>&lt;P&gt;If this matters and is in a data step why can't you control the variables my making the loop go up to M rather than control the variables in the list.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;do i = 1 to M;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 19:42:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-macro-variables-from-a-dynamic-value/m-p/353421#M82504</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-25T19:42:50Z</dc:date>
    </item>
  </channel>
</rss>

