<?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: gmatch macros don't output data in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/gmatch-macros-don-t-output-data/m-p/417170#M26854</link>
    <description>&lt;P&gt;You're calling the macros incorrectly, it shouldn't have the %MACRO word there. You may need to restart SAS first to clear your system and then submit as:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%GMATCH(DATA=allscores,GROUP=group,ID=id,
             MVARS=prob,WTS=1,DIST=1,
             NCONTLS=1,
             SEEDCA=33541,SEEDCO=4353451,PRINT=y,
             OUT=whatever,OUTNMCO=matched);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 29 Nov 2017 18:03:41 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-11-29T18:03:41Z</dc:date>
    <item>
      <title>gmatch macros don't output data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/gmatch-macros-don-t-output-data/m-p/417168#M26853</link>
      <description>&lt;P&gt;I'm not experienced with macros, but I'm trying to run a greedy matching macro on some data.&amp;nbsp; I've tried both of the following macros, only editing the indicated inputs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Mayo Clinic's version:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Jiangtang/Programming-SAS/blob/master/UserMacros/mayo/gmatch.sas" target="_blank"&gt;https://github.com/Jiangtang/Programming-SAS/blob/master/UserMacros/mayo/gmatch.sas&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%MACRO GMATCH(DATA=allscores,GROUP=group,ID=id,&lt;BR /&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; MVARS=prob,WTS=1,DIST=1,&lt;BR /&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; NCONTLS=1,&lt;BR /&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; SEEDCA=33541,SEEDCO=4353451,PRINT=y,&lt;BR /&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; OUT=whatever,OUTNMCO=matched);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And Duke's version:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://people.duke.edu/~hammill/software/gmatch.sas" target="_blank"&gt;http://people.duke.edu/~hammill/software/gmatch.sas&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro gmatch(&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;inds = allscores,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;matchvar = prob,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;groupvar = group,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;idvar = id,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; stratvar = NONE,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;caliper = NONE,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; caliper_type = ABS,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; randseed = -1,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ncntls = 1,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;outlinks = OUTLINKS,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;outds = OUTMATCH&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both versions run without generating errors, but seem to run too quickly to actually be making any computations.&amp;nbsp; No output data sets are produced with either version. I'm suspecting that there is a more general "problem", perhaps with settings, since both macros are published by reputable organizations.&amp;nbsp; Help?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 17:51:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/gmatch-macros-don-t-output-data/m-p/417168#M26853</guid>
      <dc:creator>tellmeaboutityo</dc:creator>
      <dc:date>2017-11-29T17:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: gmatch macros don't output data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/gmatch-macros-don-t-output-data/m-p/417170#M26854</link>
      <description>&lt;P&gt;You're calling the macros incorrectly, it shouldn't have the %MACRO word there. You may need to restart SAS first to clear your system and then submit as:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%GMATCH(DATA=allscores,GROUP=group,ID=id,
             MVARS=prob,WTS=1,DIST=1,
             NCONTLS=1,
             SEEDCA=33541,SEEDCO=4353451,PRINT=y,
             OUT=whatever,OUTNMCO=matched);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Nov 2017 18:03:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/gmatch-macros-don-t-output-data/m-p/417170#M26854</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-29T18:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: gmatch macros don't output data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/gmatch-macros-don-t-output-data/m-p/417210#M26856</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;You put me on the right track, thanks!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;The full code must be run with &lt;FONT color="#000080" face="Courier New"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; GMATCH &lt;FONT face="arial,helvetica,sans-serif"&gt;must first be run to define the macro.&amp;nbsp; Then the code you indicate must run after it, to execute the defined macro.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 20:06:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/gmatch-macros-don-t-output-data/m-p/417210#M26856</guid>
      <dc:creator>tellmeaboutityo</dc:creator>
      <dc:date>2017-11-29T20:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: gmatch macros don't output data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/gmatch-macros-don-t-output-data/m-p/417212#M26857</link>
      <description>&lt;P&gt;I prefer to keep the macros stored separately, in their own programs, otherwise they clutter up your analysis.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the macros are stored in a separate file. You compile the macro by either running that code first manually OR you can use %INCLUDE to include the program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include 'path to your gmatch.sas file from CDC/Mayo';

%gmatch(......);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Nov 2017 20:12:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/gmatch-macros-don-t-output-data/m-p/417212#M26857</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-29T20:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: gmatch macros don't output data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/gmatch-macros-don-t-output-data/m-p/556207#M33634</link>
      <description>Moved to NEW thread.</description>
      <pubDate>Sat, 04 May 2019 17:33:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/gmatch-macros-don-t-output-data/m-p/556207#M33634</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-05-04T17:33:46Z</dc:date>
    </item>
  </channel>
</rss>

