<?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 Assigning based on range however I am getting one to many records in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Assigning-based-on-range-however-I-am-getting-one-to-many/m-p/526446#M143362</link>
    <description>&lt;P&gt;I am trying to assign a value to a database from a database that has dates and based on the dates are assigned an iteration. I want to assign the iteration to another database with the dates within that range and I keep getting one too many records. so I have original&amp;nbsp;104 records after I assign the iteration I end up with 416 records with all the iterations assigned to them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to assign based on the range of dates without getting a one to many. If so can you give me an example of how?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jan 2019 18:31:36 GMT</pubDate>
    <dc:creator>amyk</dc:creator>
    <dc:date>2019-01-11T18:31:36Z</dc:date>
    <item>
      <title>Assigning based on range however I am getting one to many records</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-based-on-range-however-I-am-getting-one-to-many/m-p/526446#M143362</link>
      <description>&lt;P&gt;I am trying to assign a value to a database from a database that has dates and based on the dates are assigned an iteration. I want to assign the iteration to another database with the dates within that range and I keep getting one too many records. so I have original&amp;nbsp;104 records after I assign the iteration I end up with 416 records with all the iterations assigned to them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to assign based on the range of dates without getting a one to many. If so can you give me an example of how?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 18:31:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-based-on-range-however-I-am-getting-one-to-many/m-p/526446#M143362</guid>
      <dc:creator>amyk</dc:creator>
      <dc:date>2019-01-11T18:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning based on range however I am getting one to many records</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-based-on-range-however-I-am-getting-one-to-many/m-p/526448#M143364</link>
      <description>&lt;P&gt;Can you share the code you are working with, and a portion of the data?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 18:33:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-based-on-range-however-I-am-getting-one-to-many/m-p/526448#M143364</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-01-11T18:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning based on range however I am getting one to many records</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-based-on-range-however-I-am-getting-one-to-many/m-p/526450#M143365</link>
      <description>&lt;P&gt;I would like to assign the iteration based on the date range from the start date to the end date to a database that has all Dec dates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Iteration, Start_Date, End_Dates&lt;BR /&gt;1, 1-Dec-18, 7-Dec-18&lt;BR /&gt;2, 8-Dec-18, 14-Dec-18&lt;BR /&gt;3, 15-Dec-18, 22-Dec-18&amp;nbsp;&lt;BR /&gt;4, 23-Dec-18, 31-Dec-18&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when I join the tables together all the Dec dates are assigned with all the iterations.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 18:41:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-based-on-range-however-I-am-getting-one-to-many/m-p/526450#M143365</guid>
      <dc:creator>amyk</dc:creator>
      <dc:date>2019-01-11T18:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning based on range however I am getting one to many records</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-based-on-range-however-I-am-getting-one-to-many/m-p/526477#M143380</link>
      <description>&lt;P&gt;Use the BETWEEN operator in SQL:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
select 
    b.iteration, 
    a.* 
from 
    have as a inner join
    iterations as b on a.date between b.start_date and b.end_date;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Jan 2019 20:16:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-based-on-range-however-I-am-getting-one-to-many/m-p/526477#M143380</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-01-11T20:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning based on range however I am getting one to many records</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-based-on-range-however-I-am-getting-one-to-many/m-p/526506#M143398</link>
      <description>&lt;P&gt;thank you that was very help&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://communities.sas.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;ful!!!!!!!!!!!!!!!!!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 21:43:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-based-on-range-however-I-am-getting-one-to-many/m-p/526506#M143398</guid>
      <dc:creator>amyk</dc:creator>
      <dc:date>2019-01-11T21:43:58Z</dc:date>
    </item>
  </channel>
</rss>

