<?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 change the value stored in the macro variable change dynamically based on a condition? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-value-stored-in-the-macro-variable-change/m-p/444384#M111250</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/170333"&gt;@rajuganesh30&lt;/a&gt;-&lt;/P&gt;&lt;P&gt;is there anything in your dataset which can trigger extraction or Data refresh&amp;nbsp;is happening for UAT Or PROD environment?&lt;/P&gt;&lt;P&gt;If yes then we can change macro variables&amp;nbsp;value dynamically o.w we need to pass macro parameters&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Mar 2018 13:50:58 GMT</pubDate>
    <dc:creator>Bhushan</dc:creator>
    <dc:date>2018-03-10T13:50:58Z</dc:date>
    <item>
      <title>How to change the value stored in the macro variable change dynamically based on a condition?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-value-stored-in-the-macro-variable-change/m-p/444366#M111243</link>
      <description>&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset with a variable called "ENVIRONMENT", the values will in it would be either "UAT" or "PROD", but not both the values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to store the value in a macro variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;eg. if the dataset has a value of "UAT" stored today the macro variable should resolve to "UAT".&lt;/P&gt;&lt;P&gt;if the next extract of dataset tomorrow contains "PROD" i want the macro variable to resolve to "PROD"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please help me out?&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;&amp;nbsp;&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>Sat, 10 Mar 2018 09:48:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-value-stored-in-the-macro-variable-change/m-p/444366#M111243</guid>
      <dc:creator>rajuganesh30</dc:creator>
      <dc:date>2018-03-10T09:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the value stored in the macro variable change dynamically based on a condition?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-value-stored-in-the-macro-variable-change/m-p/444374#M111245</link>
      <description>&lt;P&gt;Something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
set have (obs=1);
call symputx('macrovar',environment);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Mar 2018 10:53:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-value-stored-in-the-macro-variable-change/m-p/444374#M111245</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-03-10T10:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the value stored in the macro variable change dynamically based on a condition?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-value-stored-in-the-macro-variable-change/m-p/444377#M111247</link>
      <description>Thanks for the Answer&lt;BR /&gt;</description>
      <pubDate>Sat, 10 Mar 2018 11:12:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-value-stored-in-the-macro-variable-change/m-p/444377#M111247</guid>
      <dc:creator>rajuganesh30</dc:creator>
      <dc:date>2018-03-10T11:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the value stored in the macro variable change dynamically based on a condition?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-value-stored-in-the-macro-variable-change/m-p/444384#M111250</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/170333"&gt;@rajuganesh30&lt;/a&gt;-&lt;/P&gt;&lt;P&gt;is there anything in your dataset which can trigger extraction or Data refresh&amp;nbsp;is happening for UAT Or PROD environment?&lt;/P&gt;&lt;P&gt;If yes then we can change macro variables&amp;nbsp;value dynamically o.w we need to pass macro parameters&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Mar 2018 13:50:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-value-stored-in-the-macro-variable-change/m-p/444384#M111250</guid>
      <dc:creator>Bhushan</dc:creator>
      <dc:date>2018-03-10T13:50:58Z</dc:date>
    </item>
  </channel>
</rss>

