<?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 gather all the macro variable name and value into a dataset in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-gather-all-the-macro-variable-name-and-value-into-a/m-p/875275#M42934</link>
    <description>Could you please provide a SAS snippet code that show how to do that&lt;BR /&gt;</description>
    <pubDate>Thu, 11 May 2023 16:14:50 GMT</pubDate>
    <dc:creator>alepage</dc:creator>
    <dc:date>2023-05-11T16:14:50Z</dc:date>
    <item>
      <title>how to gather all the macro variable name and value into a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-gather-all-the-macro-variable-name-and-value-into-a/m-p/875267#M42932</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am using a proc http procedure to send information to an API Web Site.&amp;nbsp; During the SAS code execution, one macro variable name ex; ContactId&amp;amp;i is generated as well as its value.&amp;nbsp; &amp;nbsp;For 5000 contacts, I will have something like ContactId1 - ContactId5000 and their corresponding string value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not want to keep the log file because they are too big. So, I wonder how to gather the macro variable name and value into a dataset where each iteration create a new macro variable and how to update the dataset.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 15:56:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-gather-all-the-macro-variable-name-and-value-into-a/m-p/875267#M42932</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2023-05-11T15:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to gather all the macro variable name and value into a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-gather-all-the-macro-variable-name-and-value-into-a/m-p/875272#M42933</link>
      <description>&lt;P&gt;SAS is automatically doing this for you.&amp;nbsp; Take a look at (and copy from if you so choose) dictionary.macros.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 16:11:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-gather-all-the-macro-variable-name-and-value-into-a/m-p/875272#M42933</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2023-05-11T16:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to gather all the macro variable name and value into a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-gather-all-the-macro-variable-name-and-value-into-a/m-p/875275#M42934</link>
      <description>Could you please provide a SAS snippet code that show how to do that&lt;BR /&gt;</description>
      <pubDate>Thu, 11 May 2023 16:14:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-gather-all-the-macro-variable-name-and-value-into-a/m-p/875275#M42934</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2023-05-11T16:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to gather all the macro variable name and value into a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-gather-all-the-macro-variable-name-and-value-into-a/m-p/875281#M42935</link>
      <description>&lt;P&gt;Consider adding an append before your drop the result data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc append base=results data=results&amp;amp;i force;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 May 2023 16:29:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-gather-all-the-macro-variable-name-and-value-into-a/m-p/875281#M42935</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-05-11T16:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to gather all the macro variable name and value into a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-gather-all-the-macro-variable-name-and-value-into-a/m-p/875287#M42936</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76331"&gt;@alepage&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Could you please provide a SAS snippet code that show how to do that&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;PRE&gt;proc sql;
   select * 
   from dictionary.macros
   ;
run;&lt;/PRE&gt;
&lt;P&gt;Will send all of the macro variable information to the result window.&lt;/P&gt;
&lt;P&gt;Obviously could create a data set using the Create table &amp;lt;name you want&amp;gt; as syntax.&lt;/P&gt;
&lt;P&gt;Could also filter with a Where name is like condition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 16:43:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-gather-all-the-macro-variable-name-and-value-into-a/m-p/875287#M42936</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-05-11T16:43:23Z</dc:date>
    </item>
  </channel>
</rss>

