<?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: %mbrmatch in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/783531#M249848</link>
    <description>&lt;P&gt;Hello team member,&lt;/P&gt;
&lt;P&gt;I was told that it is too complicated for me and I don't need to learn it. They told me that it was written by a member from SAS institute.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Blueblue&lt;/P&gt;</description>
    <pubDate>Thu, 02 Dec 2021 04:00:21 GMT</pubDate>
    <dc:creator>GN0001</dc:creator>
    <dc:date>2021-12-02T04:00:21Z</dc:date>
    <item>
      <title>%mbrmatch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/776104#M246758</link>
      <description>&lt;P&gt;Hello team,&lt;/P&gt;
&lt;P&gt;I have inherited a code as below:&lt;/P&gt;
&lt;PRE&gt;%mbrreconcile( indata               =work.somedataset,
                                             fld_patientNum         =  ,
                                             fld_patientmcdid      = ,
                                             fld_patientName = mbrName,
                                             fld_patientLastName = mbrLastNae,
                                      ......................
                                    ..........................

);&lt;/PRE&gt;
&lt;P&gt;They told me that this macro matches the member. How could this macro do such a task?&lt;/P&gt;
&lt;P&gt;I have always learned for matching to use joins. I wonder what syntax this is.&lt;/P&gt;
&lt;P&gt;Can someone kindly please provide some instruction?&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;blueblue&lt;/P&gt;</description>
      <pubDate>Sun, 24 Oct 2021 22:54:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/776104#M246758</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2021-10-24T22:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: %mbrmatch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/776105#M246759</link>
      <description>&lt;P&gt;Please show us the code in the macro.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Oct 2021 22:56:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/776105#M246759</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-10-24T22:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: %mbrmatch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/776119#M246767</link>
      <description>&lt;P&gt;PaigeMiller,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have shown the code to you. It is exactly like what you see.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;blueblue&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 01:39:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/776119#M246767</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2021-10-25T01:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: %mbrmatch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/776120#M246768</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202329"&gt;@GN0001&lt;/a&gt; - What you've shown us is the code that calls the macro. What we need to see is the code that creates the macro in the first place.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 01:57:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/776120#M246768</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-10-25T01:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: %mbrmatch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/776164#M246799</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;is correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We need to see the code inside the macro, not the code that calls the macro.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 10:43:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/776164#M246799</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-10-25T10:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: %mbrmatch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/776210#M246816</link>
      <description>&lt;P&gt;You ask about %mbrmatch but that is not the name of the macro you are calling. One suspects that your %mbrmatch may actually call the definition of one or more macros such as the one you show. If it doesn't have the definition code for the other macros you need to do some sleuthing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where is the code that starts&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro mbrreconcile ( )&lt;/P&gt;
&lt;P&gt;and ends with&lt;/P&gt;
&lt;P&gt;%mend;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;that is what defines the macro. If you have this macro in an Autocall macro library, which seems likely if you don't see the macro definition in the code you run, then you need to run&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc options option=SASautos;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which should show the path to any autocall libraries. Search in those folders for the definition of the macro you are using. This option would explain why you don't need to run the macro definition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OR it may be called in your Autoexec.SAS for each session started.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 14:52:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/776210#M246816</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-10-25T14:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: %mbrmatch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/776274#M246839</link>
      <description>&lt;P&gt;Hello team,&lt;/P&gt;
&lt;P&gt;Thanks for correcting me.&lt;/P&gt;
&lt;P&gt;Mbrmatch was inside a macro, since it Mbrmatch had %, I thought it is a macro by itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is what I have:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro get_data;&lt;/P&gt;
&lt;P&gt;%do i = 1 %to &amp;amp;lst.&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;select strip(basefile) into: INFILEName from myfile where index=&amp;amp;i;&lt;/P&gt;
&lt;P&gt;select strip(basefile) into: INFILEPath from myfile where index=&amp;amp;i;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;%mbrmatch (indata = work.somedata,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fld_mbrID&amp;nbsp; &amp;nbsp;= ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fld_mbrName= ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fld_mbrLastName= ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ............................&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;create table thistable as&lt;/P&gt;
&lt;P&gt;select ................&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;create table thattable as&lt;/P&gt;
&lt;P&gt;select....&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc append&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%mend get_data;&lt;/P&gt;
&lt;P&gt;%get_data;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I appreciate your response.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Blueblue&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 19:00:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/776274#M246839</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2021-10-25T19:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: %mbrmatch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/776284#M246845</link>
      <description>&lt;P&gt;We still need to see the code defining the MBRMATCH macro to know what it does.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 19:46:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/776284#M246845</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-10-25T19:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: %mbrmatch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/776294#M246854</link>
      <description>&lt;P&gt;Yes, it should be macro on its own, but you only have the&amp;nbsp;&lt;STRONG&gt;CALL&lt;/STRONG&gt;&amp;nbsp;here, not the&amp;nbsp;&lt;STRONG&gt;DEFINITION&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;To assist you with the macro, we&amp;nbsp;&lt;EM&gt;must&lt;/EM&gt; see that definition.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 20:47:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/776294#M246854</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-10-25T20:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: %mbrmatch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/776307#M246861</link>
      <description>&lt;P&gt;hello kert,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do you mean by saying: "&lt;SPAN&gt;Yes, it should be macro on its own,"?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What is the definition?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That is the code I have in all the program for %mbr_match.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;blueblue&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 22:01:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/776307#M246861</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2021-10-25T22:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: %mbrmatch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/776363#M246898</link>
      <description>&lt;P&gt;Macros do not appear magically, they have to be defined within a &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/mcrolref/p1nypovnwon4uyn159rst8pgzqrl.htm" target="_blank" rel="noopener"&gt;%MACRO&lt;/A&gt; and &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/mcrolref/n01mgvwt7f9smen159ad334ts4ha.htm" target="_blank" rel="noopener"&gt;%MEND&lt;/A&gt; statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro macroname (parameters);
/* macro code */
%mend macroname;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Oct 2021 05:32:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/776363#M246898</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-10-26T05:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: %mbrmatch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/783531#M249848</link>
      <description>&lt;P&gt;Hello team member,&lt;/P&gt;
&lt;P&gt;I was told that it is too complicated for me and I don't need to learn it. They told me that it was written by a member from SAS institute.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Blueblue&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 04:00:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/mbrmatch/m-p/783531#M249848</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2021-12-02T04:00:21Z</dc:date>
    </item>
  </channel>
</rss>

