<?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: Can someone help me understand why the %match macro wont run? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-someone-help-me-understand-why-the-match-macro-wont-run/m-p/794601#M254796</link>
    <description>&lt;P&gt;Where is the code for the macro? Did you pull it out of the paper and include it in your code or is it available somewhere else?&lt;BR /&gt;&lt;BR /&gt;To run a macro you need both the macro definition and call and then you can execute it. &lt;BR /&gt;&lt;BR /&gt;Something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*macro definition;
%macro print(ds=);
proc print data=&amp;amp;ds;
run;
%mend;



*macro call;
%print(ds=sashelp.class);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;You're missing the first part of the process. &lt;BR /&gt;&lt;BR /&gt;FYI - look into proc PSMATCH which is a built in SAS procedure for doing propensity score matching as well.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/377254"&gt;@Rover17&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to run a SAS macro that I found in the following SAS Statistics and Data Analysis Paper:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An Introduction to Matching and its Application using SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I attached the paper to this post.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below are the two SAS data steps to create the input datasets for the macro. These data steps run fine. But, I cannot get the %match macro to run.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The macro is after the two data step programs below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data CASES;&lt;BR /&gt;Input PTID AGMT CHK AGMN WT;&lt;BR /&gt;Cards;&lt;BR /&gt;101 39 1 13 118&lt;BR /&gt;102 35 1 14 129&lt;BR /&gt;103 28 1 12 108&lt;BR /&gt;104 31 1 14 110&lt;BR /&gt;105 41 1 13 138&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data CONTROLS;&lt;BR /&gt;Input PTID AGMT CHK AGMN WT;&lt;BR /&gt;Cards;&lt;BR /&gt;201 39 2 11 175&lt;BR /&gt;202 62 1 11 170&lt;BR /&gt;203 35 2 11 170&lt;BR /&gt;204 42 1 13 118&lt;BR /&gt;205 30 1 14 130&lt;BR /&gt;206 39 2 12 135&lt;BR /&gt;207 27 2 12 127&lt;BR /&gt;208 58 1 10 140&lt;BR /&gt;209 36 1 14 110&lt;BR /&gt;210 41 2 12 129&lt;BR /&gt;211 55 2 13 193&lt;BR /&gt;212 45 1 11 154&lt;BR /&gt;213 61 2 13 153&lt;BR /&gt;214 31 2 11 97&lt;BR /&gt;215 28 2 11 145&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;%match(case=CASES, control=CONTROLS, idca=PTID, idco=PTID, mvars=AGMT, wts=2, dmaxk=2,&lt;BR /&gt;method=optimal, ncontls=2, maxiter=10000, out=MTCH, print=y); run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone please help me understand why this %match macro wont run?&amp;nbsp; I get the following output when trying to run it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;71 %match(case=CASES, control=CONTROLS, idca=PTID, idco=PTID, mvars=AGMT, wts=2, dmaxk=2,&lt;BR /&gt;-&lt;BR /&gt;180&lt;BR /&gt;WARNING: Apparent invocation of macro MATCH not resolved.&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;
&lt;P&gt;72 method=optimal, ncontls=2, maxiter=10000, out=MTCH, print=y);&lt;/P&gt;
&lt;P&gt;72 ! run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Feb 2022 20:29:11 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2022-02-04T20:29:11Z</dc:date>
    <item>
      <title>Can someone help me understand why the %match macro wont run?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-someone-help-me-understand-why-the-match-macro-wont-run/m-p/794599#M254795</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to run a SAS macro that I found in the following SAS Statistics and Data Analysis Paper:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An Introduction to Matching and its Application using SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached the paper to this post.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are the two SAS data steps to create the input datasets for the macro. These data steps run fine. But, I cannot get the %match macro to run.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The macro is after the two data step programs below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data CASES;&lt;BR /&gt;Input PTID AGMT CHK AGMN WT;&lt;BR /&gt;Cards;&lt;BR /&gt;101 39 1 13 118&lt;BR /&gt;102 35 1 14 129&lt;BR /&gt;103 28 1 12 108&lt;BR /&gt;104 31 1 14 110&lt;BR /&gt;105 41 1 13 138&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data CONTROLS;&lt;BR /&gt;Input PTID AGMT CHK AGMN WT;&lt;BR /&gt;Cards;&lt;BR /&gt;201 39 2 11 175&lt;BR /&gt;202 62 1 11 170&lt;BR /&gt;203 35 2 11 170&lt;BR /&gt;204 42 1 13 118&lt;BR /&gt;205 30 1 14 130&lt;BR /&gt;206 39 2 12 135&lt;BR /&gt;207 27 2 12 127&lt;BR /&gt;208 58 1 10 140&lt;BR /&gt;209 36 1 14 110&lt;BR /&gt;210 41 2 12 129&lt;BR /&gt;211 55 2 13 193&lt;BR /&gt;212 45 1 11 154&lt;BR /&gt;213 61 2 13 153&lt;BR /&gt;214 31 2 11 97&lt;BR /&gt;215 28 2 11 145&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%match(case=CASES, control=CONTROLS, idca=PTID, idco=PTID, mvars=AGMT, wts=2, dmaxk=2,&lt;BR /&gt;method=optimal, ncontls=2, maxiter=10000, out=MTCH, print=y); run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please help me understand why this %match macro wont run?&amp;nbsp; I get the following output when trying to run it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;71 %match(case=CASES, control=CONTROLS, idca=PTID, idco=PTID, mvars=AGMT, wts=2, dmaxk=2,&lt;BR /&gt;-&lt;BR /&gt;180&lt;BR /&gt;WARNING: Apparent invocation of macro MATCH not resolved.&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;72 method=optimal, ncontls=2, maxiter=10000, out=MTCH, print=y);&lt;/P&gt;&lt;P&gt;72 ! run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 20:17:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-someone-help-me-understand-why-the-match-macro-wont-run/m-p/794599#M254795</guid>
      <dc:creator>Rover17</dc:creator>
      <dc:date>2022-02-04T20:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone help me understand why the %match macro wont run?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-someone-help-me-understand-why-the-match-macro-wont-run/m-p/794601#M254796</link>
      <description>&lt;P&gt;Where is the code for the macro? Did you pull it out of the paper and include it in your code or is it available somewhere else?&lt;BR /&gt;&lt;BR /&gt;To run a macro you need both the macro definition and call and then you can execute it. &lt;BR /&gt;&lt;BR /&gt;Something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*macro definition;
%macro print(ds=);
proc print data=&amp;amp;ds;
run;
%mend;



*macro call;
%print(ds=sashelp.class);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;You're missing the first part of the process. &lt;BR /&gt;&lt;BR /&gt;FYI - look into proc PSMATCH which is a built in SAS procedure for doing propensity score matching as well.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/377254"&gt;@Rover17&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to run a SAS macro that I found in the following SAS Statistics and Data Analysis Paper:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An Introduction to Matching and its Application using SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I attached the paper to this post.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below are the two SAS data steps to create the input datasets for the macro. These data steps run fine. But, I cannot get the %match macro to run.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The macro is after the two data step programs below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data CASES;&lt;BR /&gt;Input PTID AGMT CHK AGMN WT;&lt;BR /&gt;Cards;&lt;BR /&gt;101 39 1 13 118&lt;BR /&gt;102 35 1 14 129&lt;BR /&gt;103 28 1 12 108&lt;BR /&gt;104 31 1 14 110&lt;BR /&gt;105 41 1 13 138&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data CONTROLS;&lt;BR /&gt;Input PTID AGMT CHK AGMN WT;&lt;BR /&gt;Cards;&lt;BR /&gt;201 39 2 11 175&lt;BR /&gt;202 62 1 11 170&lt;BR /&gt;203 35 2 11 170&lt;BR /&gt;204 42 1 13 118&lt;BR /&gt;205 30 1 14 130&lt;BR /&gt;206 39 2 12 135&lt;BR /&gt;207 27 2 12 127&lt;BR /&gt;208 58 1 10 140&lt;BR /&gt;209 36 1 14 110&lt;BR /&gt;210 41 2 12 129&lt;BR /&gt;211 55 2 13 193&lt;BR /&gt;212 45 1 11 154&lt;BR /&gt;213 61 2 13 153&lt;BR /&gt;214 31 2 11 97&lt;BR /&gt;215 28 2 11 145&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;%match(case=CASES, control=CONTROLS, idca=PTID, idco=PTID, mvars=AGMT, wts=2, dmaxk=2,&lt;BR /&gt;method=optimal, ncontls=2, maxiter=10000, out=MTCH, print=y); run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone please help me understand why this %match macro wont run?&amp;nbsp; I get the following output when trying to run it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;71 %match(case=CASES, control=CONTROLS, idca=PTID, idco=PTID, mvars=AGMT, wts=2, dmaxk=2,&lt;BR /&gt;-&lt;BR /&gt;180&lt;BR /&gt;WARNING: Apparent invocation of macro MATCH not resolved.&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;
&lt;P&gt;72 method=optimal, ncontls=2, maxiter=10000, out=MTCH, print=y);&lt;/P&gt;
&lt;P&gt;72 ! run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 20:29:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-someone-help-me-understand-why-the-match-macro-wont-run/m-p/794601#M254796</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-02-04T20:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone help me understand why the %match macro wont run?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-someone-help-me-understand-why-the-match-macro-wont-run/m-p/794603#M254798</link>
      <description>The Mayo clinics macros are here but that one isn't one that's available anymore. There's a gmatch for greedy matching and vmatch. &lt;BR /&gt;&lt;A href="https://bioinformaticstools.mayo.edu/?category=20" target="_blank"&gt;https://bioinformaticstools.mayo.edu/?category=20&lt;/A&gt;</description>
      <pubDate>Fri, 04 Feb 2022 20:28:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-someone-help-me-understand-why-the-match-macro-wont-run/m-p/794603#M254798</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-02-04T20:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone help me understand why the %match macro wont run?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-someone-help-me-understand-why-the-match-macro-wont-run/m-p/794680#M254812</link>
      <description>&lt;P&gt;Thanks Reeza.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try that later today.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I was under the impression that the %match macro I asked about would function the same way as the %ds2csv macro that converts SAS datasets to CSV files.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the %ds2csv, there is no need to use the %marco and %mend statements.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Data CASES;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Input PTID AGMT CHK AGMN WT;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cards;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;101 39 1 13 118&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;102 35 1 14 129&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;103 28 1 12 108&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;104 31 1 14 110&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;105 41 1 13 138&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%ds2csv(data=CASES, csvfile='c:\CASES.csv', runmode=b);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why do they differ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;</description>
      <pubDate>Sat, 05 Feb 2022 20:40:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-someone-help-me-understand-why-the-match-macro-wont-run/m-p/794680#M254812</guid>
      <dc:creator>Rover17</dc:creator>
      <dc:date>2022-02-05T20:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone help me understand why the %match macro wont run?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-someone-help-me-understand-why-the-match-macro-wont-run/m-p/794688#M254815</link>
      <description>&lt;P&gt;&lt;SPAN&gt;%ds2csv is a SAS-supplied macro so is available to anyone using that SAS installation. %match appears to be a user-written macro so will only be available if the user has posted or published it so others can use it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;A macro always starts with a %MACRO statement and ends with a %MEND statement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;When you run&amp;nbsp;%ds2csv, you are running a macro program that starts with the statement %MACRO&amp;nbsp;&amp;nbsp;ds2csv and ends with %MEND. So for %match to work you need a similar macro program,].&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Feb 2022 00:12:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-someone-help-me-understand-why-the-match-macro-wont-run/m-p/794688#M254815</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-02-06T00:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone help me understand why the %match macro wont run?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-someone-help-me-understand-why-the-match-macro-wont-run/m-p/794699#M254822</link>
      <description>&lt;P&gt;If you run this code:&lt;/P&gt;
&lt;PRE&gt;proc options option=set;run;
&lt;/PRE&gt;
&lt;P&gt;The log may show something like:&lt;/P&gt;
&lt;PRE&gt; SET=[FT15F001 = 'FT15F001.DAT'] [SASROOT = "C:\Program Files\SASHome\SASFoundation\9.4"]
[SASHOME = "C:\Program Files\SASHome"] [SASAUTOS = (                    "!SASROOT\core\sasmacro"
        "!SASROOT\aacomp\sasmacro"          "!SASROOT\accelmva\sasmacro"
"!SASROOT\dmscore\sasmacro"          "!SASROOT\graph\sasmacro"          "!SASROOT\hps\sasmacro"
       "!SASROOT\stat\sasmacro"          )] [SAMPSIO = (
"!SASROOT\core\sample"          "!SASROOT\access\sample"          "!SASROOT\accesssample\sample"
        "!SASROOT\graph\sample"          "!SASROOT\hps\sample"          "!SASROOT\hpstat\sample"
        "!SASROOT\stat\sample"          )] [SAMPsrc=(                    "!SASROOT\core\sample"
         "!SASROOT\access\sample"          "!SASROOT\accesssample\sample"
"!SASROOT\graph\sample"          "!SASROOT\hps\sample"          "!SASROOT\hpstat\sample"
"!SASROOT\stat\sample"          )] [INSTALL = (                    )] [MYSASFILES =
"?FOLDERID_Documents\My SAS Files\9.4"] [SASCFG = "C:\Program
Files\SASHome\SASFoundation\9.4\nls\en"] [SAS_NO_RANDOM_ACCESS = "1"]
                   Defines a SAS environment variable.
&lt;/PRE&gt;
&lt;P&gt;The relevant part starts at [SASAUTOS = . You will see a list of paths that end in SASMACRO (at least for the SAS supplied folders. The SASAUTOS option sets locations that your SAS install will search for macro names if the macro has not been compiled in the current session. If the macro name is found is found in any of those folders it will be compiled and made available for use.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Macro program definition files will be found in those folders with the name of the macro and SAS as an extension. Your installation might include custom macros in a location other than SAS install folders and use the option SASAUTOS in your local configuration to point to additional macros. If you macro definition code does not exist in one of the SASAUTOS folders you need to compile it for each session you expect to use the macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my case the %ds2csv macro is in C:\Program Files\SASHome\SASFoundation\9.4\core\sasmacro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/377254"&gt;@Rover17&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks Reeza.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will try that later today.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I was under the impression that the %match macro I asked about would function the same way as the %ds2csv macro that converts SAS datasets to CSV files.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the %ds2csv, there is no need to use the %marco and %mend statements.&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Feb 2022 08:46:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-someone-help-me-understand-why-the-match-macro-wont-run/m-p/794699#M254822</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-02-06T08:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone help me understand why the %match macro wont run?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-someone-help-me-understand-why-the-match-macro-wont-run/m-p/794706#M254824</link>
      <description>&lt;P&gt;This is a great explanation on the difference between SAS supplied vs user created macros.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sun, 06 Feb 2022 14:46:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-someone-help-me-understand-why-the-match-macro-wont-run/m-p/794706#M254824</guid>
      <dc:creator>Rover17</dc:creator>
      <dc:date>2022-02-06T14:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone help me understand why the %match macro wont run?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-someone-help-me-understand-why-the-match-macro-wont-run/m-p/794707#M254825</link>
      <description>&lt;P&gt;This is also a big help. Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 06 Feb 2022 14:46:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-someone-help-me-understand-why-the-match-macro-wont-run/m-p/794707#M254825</guid>
      <dc:creator>Rover17</dc:creator>
      <dc:date>2022-02-06T14:46:28Z</dc:date>
    </item>
  </channel>
</rss>

