<?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: SAS How to transfer a field with different values to another table (like a left join with condit in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-How-to-transfer-a-field-with-different-values-to-another/m-p/693917#M25071</link>
    <description>Yes, It has got it. It´s a typo. thanks</description>
    <pubDate>Fri, 23 Oct 2020 20:18:16 GMT</pubDate>
    <dc:creator>t34</dc:creator>
    <dc:date>2020-10-23T20:18:16Z</dc:date>
    <item>
      <title>SAS How to transfer a field with different values to another table (like a left join with condition)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-How-to-transfer-a-field-with-different-values-to-another/m-p/693893#M25068</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I show you what I want to do. I have to tables: have1 and have2 and I want to have the table "want". If date of have2 is between start_date and end_date I want to copy this field. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please, can you help me with this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your help!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have1;
informat Start_Date End_Date ddmmyy10.;
format Start_Date End_Date ddmmyy10.;
input id  Start_Date  End_Date;
datalines;
10 08/02/2020 07/03/2020
10 02/10/2020 18/10/2020
;;;;
run;
data have2;
infile datalines delimiter=',';
informat Date ddmmyy10.;
format Date  ddmmyy10.;
input id  Date  ;
datalines;
10,01/01/20&lt;BR /&gt;10,15/02/20
10,01/04/20
10,05/05/20
10,05/10/20
;;;;;
run;
data want;
infile datalines delimiter=',';
informat Date Start_Date End_Date ddmmyy10.;
format Date Start_Date End_Date ddmmyy10.;
input id  Date  Start_Date  End_Date;
datalines;
10,01/01/20,.,.
10,15/02/20,08/02/2020,07/03/2020
10,01/04/20,.,.
10,05/05/20,.,.
10,05/10/20,02/10/2020,18/10/2020
;;;;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Oct 2020 20:21:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-How-to-transfer-a-field-with-different-values-to-another/m-p/693893#M25068</guid>
      <dc:creator>t34</dc:creator>
      <dc:date>2020-10-23T20:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS How to transfer a field with different values to another table (like a left join with condit</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-How-to-transfer-a-field-with-different-values-to-another/m-p/693913#M25070</link>
      <description>&lt;P&gt;Your have2 does not have a value of 15/02/20. Is that a typo? &lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 19:56:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-How-to-transfer-a-field-with-different-values-to-another/m-p/693913#M25070</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-10-23T19:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAS How to transfer a field with different values to another table (like a left join with condit</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-How-to-transfer-a-field-with-different-values-to-another/m-p/693917#M25071</link>
      <description>Yes, It has got it. It´s a typo. thanks</description>
      <pubDate>Fri, 23 Oct 2020 20:18:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-How-to-transfer-a-field-with-different-values-to-another/m-p/693917#M25071</guid>
      <dc:creator>t34</dc:creator>
      <dc:date>2020-10-23T20:18:16Z</dc:date>
    </item>
  </channel>
</rss>

