<?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: SAS MACRO VARIABLE in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-MACRO-VARIABLE/m-p/375337#M24413</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;amp;LIBRARY..&amp;amp;DATA&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You need two periods.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jul 2017 14:44:26 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-07-12T14:44:26Z</dc:date>
    <item>
      <title>SAS MACRO VARIABLE</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-MACRO-VARIABLE/m-p/375257#M24409</link>
      <description>&lt;P&gt;I am facing some issues in SAS Macro Variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a program in which my library name is a macro variable and the data set name may or may not be a macro variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;something like this . &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;amp;LIBRARY.SORTED,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;amp;LIBRARY.&amp;amp;DATA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now whenever I use it as &amp;amp;LIBRARY.SORTED, It resolves to SASHELPSORTED and considers it to be in work library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what should I do to resolve it as SASHELP.SORTED&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 10:27:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-MACRO-VARIABLE/m-p/375257#M24409</guid>
      <dc:creator>DipeshGupta</dc:creator>
      <dc:date>2017-07-12T10:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MACRO VARIABLE</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-MACRO-VARIABLE/m-p/375259#M24410</link>
      <description>&lt;P&gt;Macro variable names muste be valid SAS names (letters, digits, underlines, must not start with a digit, max length 32). The dot cannot be used in a macro variable name; it is always used to mark the end of a macro variable name when it is referenced.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 10:37:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-MACRO-VARIABLE/m-p/375259#M24410</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-12T10:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MACRO VARIABLE</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-MACRO-VARIABLE/m-p/375260#M24411</link>
      <description>&lt;P&gt;You should learn the full syntax for using a macro variable and&amp;nbsp;&lt;STRONG&gt;Always&lt;/STRONG&gt; use it in your code. &amp;nbsp;The form is:&lt;/P&gt;
&lt;P&gt;&amp;amp;&amp;lt;macro variable name&amp;gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note the &amp;amp; before and the dot afterwards, this is the leading and terminating character, so when you use the dot it terminates the variable, and does not show in the generated text. &amp;nbsp;What your code should look like (and also note that coding all in upper case makes it harder to read):&lt;/P&gt;
&lt;P&gt;&amp;amp;library..sorted&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will see the two dots, one to close the macro variable, the second is used to delimit library and dataset.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 10:37:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-MACRO-VARIABLE/m-p/375260#M24411</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-07-12T10:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MACRO VARIABLE</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-MACRO-VARIABLE/m-p/375337#M24413</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;amp;LIBRARY..&amp;amp;DATA&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You need two periods.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 14:44:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-MACRO-VARIABLE/m-p/375337#M24413</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-12T14:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MACRO VARIABLE</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-MACRO-VARIABLE/m-p/376212#M24441</link>
      <description>&lt;P&gt;ThankYou Very Much EveryOne. It worked. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2017 07:53:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-MACRO-VARIABLE/m-p/376212#M24441</guid>
      <dc:creator>DipeshGupta</dc:creator>
      <dc:date>2017-07-15T07:53:22Z</dc:date>
    </item>
  </channel>
</rss>

