<?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: Complex macro variable name in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Complex-macro-variable-name/m-p/332523#M74870</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well it's possible and it does work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let id=_111_;
%let &amp;amp;id.dataset = work.main_data;

%put &amp;amp;_111_dataset;
%put &amp;amp;&amp;amp;&amp;amp;id.dataset;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But unless you want that ID to be variable there is no need to do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel Santos&amp;nbsp;@ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2017 09:38:09 GMT</pubDate>
    <dc:creator>DanielSantos</dc:creator>
    <dc:date>2017-02-14T09:38:09Z</dc:date>
    <item>
      <title>Complex macro variable name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Complex-macro-variable-name/m-p/332521#M74868</link>
      <description>Hello!&lt;BR /&gt;&lt;BR /&gt;I want to create a variable called:&lt;BR /&gt;_111_dataset.&lt;BR /&gt;&lt;BR /&gt;Please advise, can I do somethink like:&lt;BR /&gt;%let id=_111_;&lt;BR /&gt;%let &amp;amp;id.dataset = work.main_data;</description>
      <pubDate>Tue, 14 Feb 2017 09:28:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Complex-macro-variable-name/m-p/332521#M74868</guid>
      <dc:creator>mono_libre</dc:creator>
      <dc:date>2017-02-14T09:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Complex macro variable name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Complex-macro-variable-name/m-p/332523#M74870</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well it's possible and it does work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let id=_111_;
%let &amp;amp;id.dataset = work.main_data;

%put &amp;amp;_111_dataset;
%put &amp;amp;&amp;amp;&amp;amp;id.dataset;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But unless you want that ID to be variable there is no need to do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel Santos&amp;nbsp;@ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 09:38:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Complex-macro-variable-name/m-p/332523#M74870</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2017-02-14T09:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Complex macro variable name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Complex-macro-variable-name/m-p/332534#M74871</link>
      <description>&lt;P&gt;Why? &amp;nbsp;How do you see _111_work.dataset being a useful variable name - remembering that if you do so you can't use any of the short hand methods like: var:&lt;/P&gt;
&lt;P&gt;Remember SAS provides to parts to varaibles - the name which is used in programming and should be succient and simple to program with as this is the main purpose of it, and the label which can be pretty much anything and is for people to look at and understand. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can pretty much guarentee any code you write from the point you describe there is going to be messy and over complicated.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 09:57:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Complex-macro-variable-name/m-p/332534#M74871</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-02-14T09:57:04Z</dc:date>
    </item>
  </channel>
</rss>

