<?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 Where statement with a date interval difference in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Where-statement-with-a-date-interval-difference/m-p/706934#M26416</link>
    <description>&lt;P&gt;Yet another beginners question from me:&lt;/P&gt;&lt;P&gt;Im working on creating a subpopulation (pop2). The dataset is DTSDCCG, and then I need all with a value in the variable Koloskopi_dt and that has a Dato_diagnosis ( a date) that is 6 month or more after the&amp;nbsp;LabSvar_foerste_pos_dato (also a date). I have no idea how to finish the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data pop2;&lt;/P&gt;&lt;P&gt;Set DTSDCCG;&lt;/P&gt;&lt;P&gt;Where not missing(Koloskopi_dt) and Dato_diagnose&amp;gt;.................LabSvar_foerste_pos_dato ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What should I put where the dots are?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Dec 2020 12:36:06 GMT</pubDate>
    <dc:creator>Jannie_D</dc:creator>
    <dc:date>2020-12-18T12:36:06Z</dc:date>
    <item>
      <title>Where statement with a date interval difference</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Where-statement-with-a-date-interval-difference/m-p/706934#M26416</link>
      <description>&lt;P&gt;Yet another beginners question from me:&lt;/P&gt;&lt;P&gt;Im working on creating a subpopulation (pop2). The dataset is DTSDCCG, and then I need all with a value in the variable Koloskopi_dt and that has a Dato_diagnosis ( a date) that is 6 month or more after the&amp;nbsp;LabSvar_foerste_pos_dato (also a date). I have no idea how to finish the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data pop2;&lt;/P&gt;&lt;P&gt;Set DTSDCCG;&lt;/P&gt;&lt;P&gt;Where not missing(Koloskopi_dt) and Dato_diagnose&amp;gt;.................LabSvar_foerste_pos_dato ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What should I put where the dots are?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 12:36:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Where-statement-with-a-date-interval-difference/m-p/706934#M26416</guid>
      <dc:creator>Jannie_D</dc:creator>
      <dc:date>2020-12-18T12:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Where statement with a date interval difference</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Where-statement-with-a-date-interval-difference/m-p/706936#M26418</link>
      <description>&lt;P&gt;Use the&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p10v3sa3i4kfxfn1sovhi5xzxh8n.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;INTNX&lt;/A&gt;&amp;nbsp;function to calculate date or time intervals. You probably want to use "c" (continuous) as fourth parameter.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 12:42:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Where-statement-with-a-date-interval-difference/m-p/706936#M26418</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-12-18T12:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Where statement with a date interval difference</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Where-statement-with-a-date-interval-difference/m-p/706961#M26425</link>
      <description>&lt;P&gt;It would be simpler (and perhaps even a bit more accurate) to change the definition of "6 months" to mean "more than 182 days".&amp;nbsp; You could use:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Where not missing(Koloskopi_dt) and Dato_diagnose &amp;gt; 182 + LabSvar_foerste_pos_dato ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 15:05:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Where-statement-with-a-date-interval-difference/m-p/706961#M26425</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2020-12-18T15:05:52Z</dc:date>
    </item>
  </channel>
</rss>

