<?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 Storing a Macro variable. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Storing-a-Macro-variable/m-p/53032#M11217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you art.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2012 13:59:02 GMT</pubDate>
    <dc:creator>kuridisanjeev</dc:creator>
    <dc:date>2012-04-02T13:59:02Z</dc:date>
    <item>
      <title>Storing a Macro variable.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Storing-a-Macro-variable/m-p/53030#M11215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am Using&amp;nbsp; the following code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc SQL;&lt;/P&gt;&lt;P&gt;select mail into : email separated by ' " " ' from dump;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename report email from ="$$$$$$$$$@*******.com"&lt;/P&gt;&lt;P&gt;to="&amp;amp;email"&lt;/P&gt;&lt;P&gt;...So on..............................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Question is ,instead of running the SQL Query Every time,I want to store that Email macro Variable permanently..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So ,Is there any way to store the macro variable permanently?? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 13:41:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Storing-a-Macro-variable/m-p/53030#M11215</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2012-04-02T13:41:43Z</dc:date>
    </item>
    <item>
      <title>Storing a Macro variable.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Storing-a-Macro-variable/m-p/53031#M11216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've never heard of permanently storing a macro variable, but you could always wrap the code within a SAS macro (that you can store permanently), and then just call the macro whenever it is needed.&amp;nbsp; That would probably be a better choice, anyhow, as the email base is likely to change over time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 13:48:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Storing-a-Macro-variable/m-p/53031#M11216</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-04-02T13:48:22Z</dc:date>
    </item>
    <item>
      <title>Storing a Macro variable.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Storing-a-Macro-variable/m-p/53032#M11217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you art.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 13:59:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Storing-a-Macro-variable/m-p/53032#M11217</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2012-04-02T13:59:02Z</dc:date>
    </item>
    <item>
      <title>Storing a Macro variable.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Storing-a-Macro-variable/m-p/53033#M11218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or you could store it into a permanent text file, and put it back to a macro variable when needed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%let email=%bquote("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:alkjdva@ald.com"&gt;alkjdva@ald.com&lt;/A&gt;&lt;SPAN&gt;" "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:lajdfla@ut.com"&gt;lajdfla@ut.com&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;file "h:\email.txt";&lt;/P&gt;&lt;P&gt;put "&amp;amp;email";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;infile "h:\email.txt" truncover;&lt;/P&gt;&lt;P&gt;input email $char50.;&lt;/P&gt;&lt;P&gt;put email;&lt;/P&gt;&lt;P&gt;if _n_=1 then call symputx('email_new',email);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put &amp;amp;email_new;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 14:15:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Storing-a-Macro-variable/m-p/53033#M11218</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-04-02T14:15:20Z</dc:date>
    </item>
    <item>
      <title>Storing a Macro variable.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Storing-a-Macro-variable/m-p/53034#M11219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's already stored in a temporary data set.&amp;nbsp; You just need to retrieve it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table perm.macrovar as select * from dictionary.macros where name='MY_MACRO_VARIABLE';&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you are dealing with long values, dictionary.macros breaks up your variable into 200-character blocks which will need to be reassembled later. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 14:21:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Storing-a-Macro-variable/m-p/53034#M11219</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-04-02T14:21:57Z</dc:date>
    </item>
  </channel>
</rss>

