<?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 Macro Variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable/m-p/870716#M343921</link>
    <description>&lt;P&gt;Hi, could you please help me with this?&lt;/P&gt;&lt;P&gt;i should&amp;nbsp;Create macro variable that will be used to filter the dataset BASEBALL to keep observation where player’s Surname isn’t starting with “W” letter.&lt;/P&gt;&lt;P&gt;Create a macro program to count how many players are playing –&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;in the same DIV and in the same TEAM,&lt;/LI&gt;&lt;LI&gt;in the same LEAGUE and at the same POSITION.&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Thu, 20 Apr 2023 06:58:25 GMT</pubDate>
    <dc:creator>kindbe17</dc:creator>
    <dc:date>2023-04-20T06:58:25Z</dc:date>
    <item>
      <title>Macro Variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable/m-p/870716#M343921</link>
      <description>&lt;P&gt;Hi, could you please help me with this?&lt;/P&gt;&lt;P&gt;i should&amp;nbsp;Create macro variable that will be used to filter the dataset BASEBALL to keep observation where player’s Surname isn’t starting with “W” letter.&lt;/P&gt;&lt;P&gt;Create a macro program to count how many players are playing –&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;in the same DIV and in the same TEAM,&lt;/LI&gt;&lt;LI&gt;in the same LEAGUE and at the same POSITION.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 20 Apr 2023 06:58:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable/m-p/870716#M343921</guid>
      <dc:creator>kindbe17</dc:creator>
      <dc:date>2023-04-20T06:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable/m-p/870717#M343922</link>
      <description>&lt;P&gt;What have you tried so far?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 07:29:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable/m-p/870717#M343922</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2023-04-20T07:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable/m-p/870718#M343923</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I start with this code and stopped because i don't know what to do, could you please help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data base;&lt;BR /&gt;set sashelp.baseball;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%let name=basename;&lt;BR /&gt;data &amp;amp;name.123;&lt;BR /&gt;base=3;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 07:33:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable/m-p/870718#M343923</guid>
      <dc:creator>kindbe17</dc:creator>
      <dc:date>2023-04-20T07:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable/m-p/870719#M343924</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let whereCond=%str(where name^=:'W');
DATA test;
   set sashelp.baseball;
   &amp;amp;whereCond.;
RUN;

%MACRO countPlayers(inputDS=,var1=,var2=);
   proc freq data=&amp;amp;inputDS.;
   table &amp;amp;var1.*&amp;amp;var2. /norow nocol nopercent;
   run;
%MEND countPlayers;

%countPlayers(inputDS=test,var1=div,var2=team);
%countPlayers(inputDS=test,var1=league,var2=position);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Apr 2023 07:36:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable/m-p/870719#M343924</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2023-04-20T07:36:22Z</dc:date>
    </item>
  </channel>
</rss>

