<?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 Creating dataset with Unique list of ID's and dates in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-dataset-with-Unique-list-of-ID-s-and-dates/m-p/437558#M108976</link>
    <description>&lt;P&gt;Hi all.&amp;nbsp; I have what I feel should be a simple question, but seem to be struggling to find a way to do it.&amp;nbsp; Ex:&amp;nbsp; I have a dataset that contains a list of 10 ID's and I have a separate dataset that contains 6 years of month end dates.&amp;nbsp; There is not a join key between the 2 files, but I need to have all dates grouped into each ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dataset&amp;nbsp;1 contains list of unique ID's&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dataset&amp;nbsp;2 contains list of month dates&lt;/P&gt;&lt;P&gt;MonthEndDates&lt;/P&gt;&lt;P&gt;Mar 2016&lt;/P&gt;&lt;P&gt;Apr 2016&lt;/P&gt;&lt;P&gt;May 2016&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a way to create this&lt;/P&gt;&lt;P&gt;ID 1&amp;nbsp; Mar 2016&lt;/P&gt;&lt;P&gt;ID 1 Apr 2016&lt;/P&gt;&lt;P&gt;ID 1 May 2016&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;ID 2 Mar 2016&lt;/P&gt;&lt;P&gt;ID 2 Apr 2016&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and so on.&amp;nbsp; Any help would be greatly appreciated!&lt;/P&gt;</description>
    <pubDate>Thu, 15 Feb 2018 13:20:13 GMT</pubDate>
    <dc:creator>Scott13</dc:creator>
    <dc:date>2018-02-15T13:20:13Z</dc:date>
    <item>
      <title>Creating dataset with Unique list of ID's and dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-dataset-with-Unique-list-of-ID-s-and-dates/m-p/437558#M108976</link>
      <description>&lt;P&gt;Hi all.&amp;nbsp; I have what I feel should be a simple question, but seem to be struggling to find a way to do it.&amp;nbsp; Ex:&amp;nbsp; I have a dataset that contains a list of 10 ID's and I have a separate dataset that contains 6 years of month end dates.&amp;nbsp; There is not a join key between the 2 files, but I need to have all dates grouped into each ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dataset&amp;nbsp;1 contains list of unique ID's&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dataset&amp;nbsp;2 contains list of month dates&lt;/P&gt;&lt;P&gt;MonthEndDates&lt;/P&gt;&lt;P&gt;Mar 2016&lt;/P&gt;&lt;P&gt;Apr 2016&lt;/P&gt;&lt;P&gt;May 2016&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a way to create this&lt;/P&gt;&lt;P&gt;ID 1&amp;nbsp; Mar 2016&lt;/P&gt;&lt;P&gt;ID 1 Apr 2016&lt;/P&gt;&lt;P&gt;ID 1 May 2016&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;ID 2 Mar 2016&lt;/P&gt;&lt;P&gt;ID 2 Apr 2016&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and so on.&amp;nbsp; Any help would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 13:20:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-dataset-with-Unique-list-of-ID-s-and-dates/m-p/437558#M108976</guid>
      <dc:creator>Scott13</dc:creator>
      <dc:date>2018-02-15T13:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating dataset with Unique list of ID's and dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-dataset-with-Unique-list-of-ID-s-and-dates/m-p/437564#M108979</link>
      <description>&lt;P&gt;This will work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data tab1;
input id;
cards;
1
2
3
;
run;

data tab2;
input mend:date9.;
format mend date9.;
cards;
31Jan2018
28Feb2018
31Mar2018
;
run;

proc sql;
create table want as
select * from tab1,tab2
order by id;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let us know if it worked for you.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 13:27:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-dataset-with-Unique-list-of-ID-s-and-dates/m-p/437564#M108979</guid>
      <dc:creator>Satish_Parida</dc:creator>
      <dc:date>2018-02-15T13:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating dataset with Unique list of ID's and dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-dataset-with-Unique-list-of-ID-s-and-dates/m-p/437569#M108981</link>
      <description>&lt;P&gt;It appears that did exactly what I needed.&amp;nbsp; I am a little embarrassed that it was something so easy...I think I was over complicating it!&amp;nbsp; Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 13:33:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-dataset-with-Unique-list-of-ID-s-and-dates/m-p/437569#M108981</guid>
      <dc:creator>Scott13</dc:creator>
      <dc:date>2018-02-15T13:33:21Z</dc:date>
    </item>
  </channel>
</rss>

