<?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: Search for datasets to merge in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Search-for-datasets-to-merge/m-p/559641#M156307</link>
    <description>&lt;P&gt;Okej, thank you, I can modify that a bit and make it work, I think.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2019 12:30:15 GMT</pubDate>
    <dc:creator>TobbeNord</dc:creator>
    <dc:date>2019-05-17T12:30:15Z</dc:date>
    <item>
      <title>Search for datasets to merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Search-for-datasets-to-merge/m-p/559630#M156302</link>
      <description>&lt;P&gt;I have many datasets with the pattern:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;T19AA032FELMOVETIMEACTIVITY&lt;BR /&gt;T19AA042FELMOVETIMEACTIVITY&lt;BR /&gt;T19AA052FELMOVETIMEACTIVITY&lt;BR /&gt;T19AA062FELMOVETIMEACTIVITY&lt;BR /&gt;T19AA072FELMOVETIMEACTIVITY&lt;BR /&gt;T19AA082FELMOVETIMEACTIVITY&lt;BR /&gt;T19AA092FELMOVETIMEACTIVITY&lt;BR /&gt;T19AA102FELMOVETIMEACTIVITY&lt;BR /&gt;T19AA112FELMOVETIMEACTIVITY&lt;BR /&gt;T19AA122FELMOVETIMEACTIVITY&lt;BR /&gt;T9AA031RTTMOVETIMEACTIVITY&lt;BR /&gt;T9AA041RTTMOVETIMEACTIVITY&lt;BR /&gt;T9AA051RTTMOVETIMEACTIVITY&lt;BR /&gt;T9AA061RTTMOVETIMEACTIVITY&lt;BR /&gt;T9AA071RTTMOVETIMEACTIVITY&lt;BR /&gt;T9AA081RTTMOVETIMEACTIVITY&lt;BR /&gt;T9AA091RTTMOVETIMEACTIVITY&lt;BR /&gt;T9AA101RTTMOVETIMEACTIVITY&lt;BR /&gt;T9AA111RTTMOVETIMEACTIVITY&lt;BR /&gt;T9AA121RTTMOVETIMEACTIVITY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to merge the datasets pairwise as following:&lt;/P&gt;&lt;P&gt;T9AA031RTTMOVETIMEACTIVITY with&amp;nbsp;T19AA032FELMOVETIMEACTIVITY&amp;nbsp;&lt;/P&gt;&lt;P&gt;T9AA041RTTMOVETIMEACTIVITY with&amp;nbsp;T19AA042FELMOVETIMEACTIVITY&amp;nbsp;&lt;/P&gt;&lt;P&gt;T9AA051RTTMOVETIMEACTIVITY with&amp;nbsp;T19AA052FELMOVETIMEACTIVITY&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You probably see the pattern here, but how do I do this with hundreds of files in a smooth way?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 11:41:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Search-for-datasets-to-merge/m-p/559630#M156302</guid>
      <dc:creator>TobbeNord</dc:creator>
      <dc:date>2019-05-17T11:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Search for datasets to merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Search-for-datasets-to-merge/m-p/559635#M156303</link>
      <description>&lt;P&gt;If they are named with just a number who changed, you can use a macro using a %DO loop :&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>Fri, 17 May 2019 12:09:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Search-for-datasets-to-merge/m-p/559635#M156303</guid>
      <dc:creator>Onizuka</dc:creator>
      <dc:date>2019-05-17T12:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Search for datasets to merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Search-for-datasets-to-merge/m-p/559639#M156305</link>
      <description>&lt;P&gt;I know that, but how?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not used to working with dataset names, only with variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 12:24:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Search-for-datasets-to-merge/m-p/559639#M156305</guid>
      <dc:creator>TobbeNord</dc:creator>
      <dc:date>2019-05-17T12:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Search for datasets to merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Search-for-datasets-to-merge/m-p/559640#M156306</link>
      <description>&lt;P&gt;For example for these 3 :&lt;/P&gt;&lt;P&gt;T9AA0&lt;STRONG&gt;31&lt;/STRONG&gt;RTTMOVETIMEACTIVITY with T19AA0&lt;STRONG&gt;32&lt;/STRONG&gt;FELMOVETIMEACTIVITY&lt;/P&gt;&lt;P&gt;T9AA0&lt;STRONG&gt;41&lt;/STRONG&gt;RTTMOVETIMEACTIVITY with T19AA0&lt;STRONG&gt;42&lt;/STRONG&gt;FELMOVETIMEACTIVITY&lt;/P&gt;&lt;P&gt;T9AA0&lt;STRONG&gt;51&lt;/STRONG&gt;RTTMOVETIMEACTIVITY with T19AA0&lt;STRONG&gt;52&lt;/STRONG&gt;FELMOVETIMEACTIVITY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%Macro merges ;

	%DO i = 3 %TO 5 ;

		Data table_merges_&amp;amp;i ;
			merge 
				T9AA0&amp;amp;i.1RTTMOVETIMEACTIVITY 
				T19AA0&amp;amp;i.2FELMOVETIMEACTIVITY 
			by yourvar ;
		run ;

	%END ;

%Mend merges&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 May 2019 12:30:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Search-for-datasets-to-merge/m-p/559640#M156306</guid>
      <dc:creator>Onizuka</dc:creator>
      <dc:date>2019-05-17T12:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Search for datasets to merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Search-for-datasets-to-merge/m-p/559641#M156307</link>
      <description>&lt;P&gt;Okej, thank you, I can modify that a bit and make it work, I think.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 12:30:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Search-for-datasets-to-merge/m-p/559641#M156307</guid>
      <dc:creator>TobbeNord</dc:creator>
      <dc:date>2019-05-17T12:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Search for datasets to merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Search-for-datasets-to-merge/m-p/559642#M156308</link>
      <description>&lt;P&gt;This is working if your datasets have the same name but just a number who is changing &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 12:31:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Search-for-datasets-to-merge/m-p/559642#M156308</guid>
      <dc:creator>Onizuka</dc:creator>
      <dc:date>2019-05-17T12:31:27Z</dc:date>
    </item>
  </channel>
</rss>

