<?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: Combine multiple datasets into one previous month dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Combine-multiple-datasets-into-one-previous-month-dataset/m-p/259352#M50174</link>
    <description>&lt;P&gt;You would have to provide more details about the names of the data sets involved.&lt;/P&gt;
&lt;P&gt;If this is part of an input proceess you might describe the incoming original datasets and how you read them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The way your current example macro is displayed you would read a single dataset 24 times as you are not changing the name at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that if you have similar dataset names you can use a list modifier : to get all of the data sets that start with the same characters. For example if your datasets are loss_mit_settlements_Feb_01 loss_mit_settlements_Feb_02 loss_mit_settlements_Feb_03&lt;/P&gt;
&lt;P&gt;then you could use&lt;/P&gt;
&lt;P&gt;Set loss_mit_settlements_Feb_: ;&lt;/P&gt;
&lt;P&gt;To read all of the sets that start with loss_mit_settlements_Feb_&lt;/P&gt;</description>
    <pubDate>Mon, 28 Mar 2016 14:48:38 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-03-28T14:48:38Z</dc:date>
    <item>
      <title>Combine multiple datasets into one previous month dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-multiple-datasets-into-one-previous-month-dataset/m-p/259347#M50169</link>
      <description>&lt;P&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;combine&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data lm_all;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; set&lt;/P&gt;
&lt;P&gt;%do i=&lt;STRONG&gt;1&lt;/STRONG&gt; %to &lt;STRONG&gt;24&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; lossmit.loss_mit_settlements_&amp;amp;last_month.*/ (keep=loan_number type actual_completion_date)&lt;/P&gt;
&lt;P&gt;%end;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%&lt;STRONG&gt;&lt;EM&gt;combine&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This code at one time pulled a dataset that already compiled loss_mit settlements into one dataset for the previous month&lt;/P&gt;
&lt;P&gt;(ie &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loss_mit_settlements_20160201&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loss_mit_settlements_20160202&lt;/P&gt;
&lt;P&gt;loss_mit_settlements_20160203&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;was automatically compiled into one previous month dataset called loss_mit_settlements_201602&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data no longer offers this. It separates each data set&amp;nbsp;individually. Is there a way to use the same macro to compile all daily datasets into one previous month file to essentially mirror what I used to have when the dataset was combine already.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 14:18:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-multiple-datasets-into-one-previous-month-dataset/m-p/259347#M50169</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2016-03-28T14:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Combine multiple datasets into one previous month dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-multiple-datasets-into-one-previous-month-dataset/m-p/259351#M50173</link>
      <description>&lt;P&gt;If either of these would be appropriate, they are available:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data im_all;&lt;/P&gt;
&lt;P&gt;set lossmit.loss_mit_settlements_2016: (keep=loan_number type actual_completion_date);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data im_all;&lt;/P&gt;
&lt;P&gt;set lossmit.loss_mit_settlements_201602: (keep=loan_number type actual_completion_date);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 14:42:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-multiple-datasets-into-one-previous-month-dataset/m-p/259351#M50173</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-03-28T14:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Combine multiple datasets into one previous month dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-multiple-datasets-into-one-previous-month-dataset/m-p/259352#M50174</link>
      <description>&lt;P&gt;You would have to provide more details about the names of the data sets involved.&lt;/P&gt;
&lt;P&gt;If this is part of an input proceess you might describe the incoming original datasets and how you read them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The way your current example macro is displayed you would read a single dataset 24 times as you are not changing the name at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that if you have similar dataset names you can use a list modifier : to get all of the data sets that start with the same characters. For example if your datasets are loss_mit_settlements_Feb_01 loss_mit_settlements_Feb_02 loss_mit_settlements_Feb_03&lt;/P&gt;
&lt;P&gt;then you could use&lt;/P&gt;
&lt;P&gt;Set loss_mit_settlements_Feb_: ;&lt;/P&gt;
&lt;P&gt;To read all of the sets that start with loss_mit_settlements_Feb_&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 14:48:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-multiple-datasets-into-one-previous-month-dataset/m-p/259352#M50174</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-28T14:48:38Z</dc:date>
    </item>
  </channel>
</rss>

