<?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 Merging datasets in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Merging-datasets/m-p/638488#M19111</link>
    <description>&lt;P&gt;How can I set these data sets with names: Fit_1, Fit_2, Fit_5, ..., Fit_1000.&lt;/P&gt;&lt;P&gt;I can not run with this:&lt;/P&gt;&lt;P&gt;##############################&lt;/P&gt;&lt;P&gt;data fit;&lt;/P&gt;&lt;P&gt;set Fit_1 - Fit_100;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;##############################&lt;/P&gt;&lt;P&gt;Error: work.fit_3 does not exist.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Apr 2020 20:41:57 GMT</pubDate>
    <dc:creator>mezerji</dc:creator>
    <dc:date>2020-04-08T20:41:57Z</dc:date>
    <item>
      <title>Merging datasets</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Merging-datasets/m-p/638488#M19111</link>
      <description>&lt;P&gt;How can I set these data sets with names: Fit_1, Fit_2, Fit_5, ..., Fit_1000.&lt;/P&gt;&lt;P&gt;I can not run with this:&lt;/P&gt;&lt;P&gt;##############################&lt;/P&gt;&lt;P&gt;data fit;&lt;/P&gt;&lt;P&gt;set Fit_1 - Fit_100;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;##############################&lt;/P&gt;&lt;P&gt;Error: work.fit_3 does not exist.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 20:41:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Merging-datasets/m-p/638488#M19111</guid>
      <dc:creator>mezerji</dc:creator>
      <dc:date>2020-04-08T20:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Merging datasets</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Merging-datasets/m-p/638490#M19112</link>
      <description>&lt;P&gt;if you don't have any other data sets whose names start with FIT_ try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; set fit_: ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other wise if you have "numbers" that don't match you leave them out of the stated sequence:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data want ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; set fit_1 fit_2 fit_4-fit_15 fit_17 - fit_30 ...;&lt;/P&gt;
&lt;P&gt;Assuming that the names listed exist and that the ranges where indicated are complete.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 20:46:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Merging-datasets/m-p/638490#M19112</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-04-08T20:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Merging datasets</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Merging-datasets/m-p/638495#M19113</link>
      <description>&lt;P&gt;Here is a reference that illustrates how to refer to variables and datasets in a short cut list:&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2018/05/29/6-easy-ways-to-specify-a-list-of-variables-in-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2018/05/29/6-easy-ways-to-specify-a-list-of-variables-in-sas.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What happens if you try the double dash instead or colon operator?&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/295903"&gt;@mezerji&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;How can I set these data sets with names: Fit_1, Fit_2, Fit_5, ..., Fit_1000.&lt;/P&gt;
&lt;P&gt;I can not run with this:&lt;/P&gt;
&lt;P&gt;##############################&lt;/P&gt;
&lt;P&gt;data fit;&lt;/P&gt;
&lt;P&gt;set Fit_1 - Fit_100;&lt;/P&gt;
&lt;P&gt;output;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;##############################&lt;/P&gt;
&lt;P&gt;Error: work.fit_3 does not exist.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 21:13:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Merging-datasets/m-p/638495#M19113</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-04-08T21:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Merging datasets</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Merging-datasets/m-p/638521#M19114</link>
      <description>&lt;P&gt;If all else fails:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
	select memname into: TableNames separated by " " from dictionary.tables
		where libname = "WORK" and substr(memname, 1, 3) = "FIT" /* Must be uppercase */
	order by memname;
quit;

%put &amp;amp;TableNames.;

data fit;
	set &amp;amp;TableNames.;
	output;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Apr 2020 22:21:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Merging-datasets/m-p/638521#M19114</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2020-04-08T22:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Merging datasets</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Merging-datasets/m-p/638638#M19118</link>
      <description>Add one option:&lt;BR /&gt;&lt;BR /&gt;options nodsnferr ;&lt;BR /&gt;data fit;&lt;BR /&gt;set Fit_1 - Fit_100;&lt;BR /&gt;run;</description>
      <pubDate>Thu, 09 Apr 2020 11:09:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Merging-datasets/m-p/638638#M19118</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-04-09T11:09:47Z</dc:date>
    </item>
  </channel>
</rss>

