<?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 what does this code mean? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/what-does-this-code-mean/m-p/595661#M171409</link>
    <description>&lt;P&gt;I am trying to match two groups. And I have a question about this statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what does this code mean?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data matched&amp;amp;n.; &lt;STRONG&gt;set matched&amp;amp;n._1-matched&amp;amp;n._&amp;amp;i.&lt;/STRONG&gt;; proc sort data=matched&amp;amp;n.; by aID; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the bolded part!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
    <pubDate>Fri, 11 Oct 2019 08:08:24 GMT</pubDate>
    <dc:creator>HJ_</dc:creator>
    <dc:date>2019-10-11T08:08:24Z</dc:date>
    <item>
      <title>what does this code mean?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-does-this-code-mean/m-p/595661#M171409</link>
      <description>&lt;P&gt;I am trying to match two groups. And I have a question about this statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what does this code mean?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data matched&amp;amp;n.; &lt;STRONG&gt;set matched&amp;amp;n._1-matched&amp;amp;n._&amp;amp;i.&lt;/STRONG&gt;; proc sort data=matched&amp;amp;n.; by aID; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the bolded part!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 08:08:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-does-this-code-mean/m-p/595661#M171409</guid>
      <dc:creator>HJ_</dc:creator>
      <dc:date>2019-10-11T08:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: what does this code mean?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-does-this-code-mean/m-p/595666#M171412</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/294740"&gt;@HJ_&lt;/a&gt;&amp;nbsp;and welcome to the SAS Community &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm guessing that the macro variables &amp;amp;n and &amp;amp;i confuses you. The code in cold simply means that the data step reads all the data sets matched&amp;amp;n._1 to&amp;nbsp;matched&amp;amp;n._i. If &amp;amp;n=1 and &amp;amp;i=3, then that means that three data sets are read. Like below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let n=1;
%let i=3;

data matched1_1;a=1;run;
data matched1_2;a=2;run;
data matched1_3;a=3;run;

data matched&amp;amp;n.;
    set matched&amp;amp;n._1-matched&amp;amp;n._&amp;amp;i.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps. Otherwise, feel free to ask.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 08:16:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-does-this-code-mean/m-p/595666#M171412</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-10-11T08:16:02Z</dc:date>
    </item>
  </channel>
</rss>

