<?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: duration dates in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/duration-dates/m-p/847063#M36930</link>
    <description>&lt;P&gt;Assuming these are numeric date variables&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set have;
    if '20JUL2022'd &amp;lt;= date &amp;lt;= '31AUG2022'd;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide data as working SAS data step code from now on. You can follow these &lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;instructions&lt;/A&gt;&amp;nbsp;or type the working SAS data step code yourself. Doing this avoids us having to make assumptions or guesses about your data (which might be incorrect), which makes it much more likely that people can provide correct answers; this helps you and helps us.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2022 15:20:48 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-11-30T15:20:48Z</dc:date>
    <item>
      <title>duration dates</title>
      <link>https://communities.sas.com/t5/New-SAS-User/duration-dates/m-p/847058#M36927</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need a dataset from&amp;nbsp;&lt;/P&gt;&lt;P&gt;07/29/2022 to 08/31/2022 in SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 15:03:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/duration-dates/m-p/847058#M36927</guid>
      <dc:creator>Smitha9</dc:creator>
      <dc:date>2022-11-30T15:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: duration dates</title>
      <link>https://communities.sas.com/t5/New-SAS-User/duration-dates/m-p/847059#M36928</link>
      <description>&lt;P&gt;Can you provide more details?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 15:07:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/duration-dates/m-p/847059#M36928</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-11-30T15:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: duration dates</title>
      <link>https://communities.sas.com/t5/New-SAS-User/duration-dates/m-p/847062#M36929</link>
      <description>dataset&lt;BR /&gt;ID Date&lt;BR /&gt;1 01/22/2021&lt;BR /&gt;2 02/23/2022&lt;BR /&gt;3 07/29/2022&lt;BR /&gt;4 08/01/2022&lt;BR /&gt;5 08/15/2022&lt;BR /&gt;&lt;BR /&gt;I want to dataset from 07/20/2022 to 08/31/2022&lt;BR /&gt;ID Date&lt;BR /&gt;1 07/29/2022&lt;BR /&gt;2 08/01/2022&lt;BR /&gt;3 08/15/2022</description>
      <pubDate>Wed, 30 Nov 2022 15:13:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/duration-dates/m-p/847062#M36929</guid>
      <dc:creator>Smitha9</dc:creator>
      <dc:date>2022-11-30T15:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: duration dates</title>
      <link>https://communities.sas.com/t5/New-SAS-User/duration-dates/m-p/847063#M36930</link>
      <description>&lt;P&gt;Assuming these are numeric date variables&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set have;
    if '20JUL2022'd &amp;lt;= date &amp;lt;= '31AUG2022'd;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide data as working SAS data step code from now on. You can follow these &lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;instructions&lt;/A&gt;&amp;nbsp;or type the working SAS data step code yourself. Doing this avoids us having to make assumptions or guesses about your data (which might be incorrect), which makes it much more likely that people can provide correct answers; this helps you and helps us.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 15:20:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/duration-dates/m-p/847063#M36930</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-11-30T15:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: duration dates</title>
      <link>https://communities.sas.com/t5/New-SAS-User/duration-dates/m-p/847070#M36931</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/329198"&gt;@Smitha9&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I need a dataset from&amp;nbsp;&lt;/P&gt;
&lt;P&gt;07/29/2022 to 08/31/2022 in SAS.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The answer to this question is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
do date = '29jul2022'd to '31aug2022'd;
  output;
end;
format date mmddyy10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But we may have a Maxim 42 issue here.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 15:57:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/duration-dates/m-p/847070#M36931</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-11-30T15:57:42Z</dc:date>
    </item>
  </channel>
</rss>

