<?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 Using macro variables on terminology of data set. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-macro-variables-on-terminology-of-data-set/m-p/820495#M323852</link>
    <description>&lt;P&gt;Hallo to all,&lt;/P&gt;&lt;P&gt;I desire to make my algorithm more flexible. From this reason I tried to used macro variables. I have problem to use marco variable on terminology of my data set.I want for example to have one marco variable as name,and with it i change the name of data sets.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can someone help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jun 2022 10:45:52 GMT</pubDate>
    <dc:creator>Barney1998</dc:creator>
    <dc:date>2022-06-27T10:45:52Z</dc:date>
    <item>
      <title>Using macro variables on terminology of data set.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-macro-variables-on-terminology-of-data-set/m-p/820495#M323852</link>
      <description>&lt;P&gt;Hallo to all,&lt;/P&gt;&lt;P&gt;I desire to make my algorithm more flexible. From this reason I tried to used macro variables. I have problem to use marco variable on terminology of my data set.I want for example to have one marco variable as name,and with it i change the name of data sets.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can someone help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 10:45:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-macro-variables-on-terminology-of-data-set/m-p/820495#M323852</guid>
      <dc:creator>Barney1998</dc:creator>
      <dc:date>2022-06-27T10:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using macro variables on terminology of data set.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-macro-variables-on-terminology-of-data-set/m-p/820497#M323853</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/425371"&gt;@Barney1998&lt;/a&gt;&amp;nbsp;Please re-read your question and consider if anyone can understand what you're asking for based on what you wrote and without any of the context that might exists in your brain.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 11:10:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-macro-variables-on-terminology-of-data-set/m-p/820497#M323853</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-06-27T11:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using macro variables on terminology of data set.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-macro-variables-on-terminology-of-data-set/m-p/820499#M323855</link>
      <description>&lt;P&gt;Please post the code you want to make dynamic, and indicate which parts of it should be dynamic.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 11:18:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-macro-variables-on-terminology-of-data-set/m-p/820499#M323855</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-06-27T11:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using macro variables on terminology of data set.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-macro-variables-on-terminology-of-data-set/m-p/820505#M323857</link>
      <description>from example ,&lt;BR /&gt;proc sql;&lt;BR /&gt;create table colour_dataset as&lt;BR /&gt;select t.*&lt;BR /&gt;from colours t&lt;BR /&gt;where t.colours='yellow';&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;I know how to use marco variable in where statement ,the question is if exist any way to use marco variable on tables onomastics i.e&lt;BR /&gt;%let colour = yellow;&lt;BR /&gt;%let colours= yellow;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;create table &amp;amp;colour_dataset as&lt;BR /&gt;select t.*&lt;BR /&gt;from colours t&lt;BR /&gt;where t.colours='&amp;amp;colours';&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;I want give name to the table above from marco variable,videlicet i don't must to give the name yellow_dataset manual but i use one variable colour and every time i changed its name the table name changed too, for example from yellow to red.&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Jun 2022 11:49:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-macro-variables-on-terminology-of-data-set/m-p/820505#M323857</guid>
      <dc:creator>Barney1998</dc:creator>
      <dc:date>2022-06-27T11:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using macro variables on terminology of data set.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-macro-variables-on-terminology-of-data-set/m-p/820506#M323858</link>
      <description>&lt;P&gt;Two key things.&lt;/P&gt;
&lt;P&gt;1) You are following the name of the macro variable you are trying to reference with a character that could be part of the name.&amp;nbsp; You can use a period to let the macro processor know where the name ends.&lt;/P&gt;
&lt;P&gt;2) The macro processor ignores quoted strings that are bounded on the outside by single quotes.&amp;nbsp; Use double quotes for your strings that you want the macro processor to evaluate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;create table &amp;amp;colour._dataset as
  select t.*
  from colours t
  where t.colours="&amp;amp;colours"
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Jun 2022 11:57:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-macro-variables-on-terminology-of-data-set/m-p/820506#M323858</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-06-27T11:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using macro variables on terminology of data set.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-macro-variables-on-terminology-of-data-set/m-p/820508#M323859</link>
      <description>Perfect. thanks a million&lt;BR /&gt;Have a nice day!</description>
      <pubDate>Mon, 27 Jun 2022 12:01:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-macro-variables-on-terminology-of-data-set/m-p/820508#M323859</guid>
      <dc:creator>Barney1998</dc:creator>
      <dc:date>2022-06-27T12:01:31Z</dc:date>
    </item>
  </channel>
</rss>

