<?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 parameter in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-parameter/m-p/806741#M317910</link>
    <description>&lt;P&gt;Thanks, i got answer from your code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Apr 2022 10:25:25 GMT</pubDate>
    <dc:creator>harshpatel</dc:creator>
    <dc:date>2022-04-08T10:25:25Z</dc:date>
    <item>
      <title>SAS Macro parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-parameter/m-p/806699#M317878</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Below is my requirement&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Column_A&amp;nbsp; &amp;nbsp; Column_B&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ABC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;21&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ABC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;23&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;XYZ&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;31&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;XYZ&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;33&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;We are creating a macro variable for ABC value but when someone will pass BAAC value instead of ABC then also it should read value of ABC&lt;/P&gt;
&lt;P&gt;Can anyone help me on this&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Harsh&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 06:10:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-parameter/m-p/806699#M317878</guid>
      <dc:creator>harshpatel</dc:creator>
      <dc:date>2022-04-08T06:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-parameter/m-p/806718#M317895</link>
      <description>&lt;P&gt;Please be precise.&lt;/P&gt;
&lt;P&gt;why should&amp;nbsp;&lt;SPAN&gt;BAAC&amp;nbsp;return the value of ABC? &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is it because the string BAAC contains all the characters of ABC? &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;what about XYZ? should xXYzZ also return values of XYZ? what about "X&amp;nbsp; &amp;nbsp; &amp;nbsp;Y&amp;nbsp; &amp;nbsp; Z"?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 07:48:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-parameter/m-p/806718#M317895</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2022-04-08T07:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-parameter/m-p/806722#M317898</link>
      <description>&lt;P&gt;I'll let you know as soon as I finish writing my mind-reading app.&amp;nbsp;&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":nerd_face:"&gt;🤓&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 08:23:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-parameter/m-p/806722#M317898</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-08T08:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-parameter/m-p/806723#M317899</link>
      <description>&lt;P&gt;Actually, i cant provide data so i have provided example&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But actually if somebody will pass different parameters apart from ABC then also ABC parameter should pass&lt;/P&gt;
&lt;P&gt;Remaining value should be kept as it is&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 08:25:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-parameter/m-p/806723#M317899</guid>
      <dc:creator>harshpatel</dc:creator>
      <dc:date>2022-04-08T08:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-parameter/m-p/806739#M317908</link>
      <description>&lt;P&gt;I've no idea what you mean, but here is something that meets the current "requirements". Enjoy.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Column_A $ Column_B;
datalines;
ABC 21
ABC 23
XYZ 31
XYZ 33
;
run;

%macro doit(in=,out=,param=);
   data &amp;amp;out.;
      set &amp;amp;in.;
      where Column_A eq 'ABC'
      %if %nrbquote(&amp;amp;param.) ne %then %do;
         or upcase(Column_A) eq upcase("&amp;amp;param.")
      %end;
      ;
   run;
%mend doit;
%doit(in=have,out=want,param=blabla);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 10:16:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-parameter/m-p/806739#M317908</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2022-04-08T10:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-parameter/m-p/806740#M317909</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/259069"&gt;@harshpatel&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Actually, i cant provide data so i have provided example&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But actually if somebody will pass different parameters apart from ABC then also ABC parameter should pass&lt;/P&gt;
&lt;P&gt;Remaining value should be kept as it is&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It's fine that you have provided an example. However, the explanation needs a lot more detail. Step-by-step, please explain what happens, in detail. That's the only way we can help you write code.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 10:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-parameter/m-p/806740#M317909</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-04-08T10:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-parameter/m-p/806741#M317910</link>
      <description>&lt;P&gt;Thanks, i got answer from your code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 10:25:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-parameter/m-p/806741#M317910</guid>
      <dc:creator>harshpatel</dc:creator>
      <dc:date>2022-04-08T10:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-parameter/m-p/806742#M317911</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/259069"&gt;@harshpatel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please mark the correct response as correct!!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 10:33:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-parameter/m-p/806742#M317911</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-04-08T10:33:39Z</dc:date>
    </item>
  </channel>
</rss>

