<?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: How to classify with If condition in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/788974#M252396</link>
    <description>This is a great question. Thanks.&lt;BR /&gt;&lt;BR /&gt;For positive more than 60 days: the status is "positive-&amp;gt;60days"&lt;BR /&gt;For negative fewer than 90 days: the status is "negative".&lt;BR /&gt;&lt;BR /&gt;In addition, for inconclusive result: the status is "unknown".  &lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;&lt;BR /&gt;Daniel</description>
    <pubDate>Fri, 07 Jan 2022 21:54:30 GMT</pubDate>
    <dc:creator>Moraes86</dc:creator>
    <dc:date>2022-01-07T21:54:30Z</dc:date>
    <item>
      <title>How to classify with If condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/788965#M252387</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to classify the column "status" in three categories: positive, negative and stable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This classification is based two conditions: date and result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Positive: for less than 30 days and positive result.&lt;/P&gt;
&lt;P&gt;Stable: between 30 and 60 days and positive result.&lt;/P&gt;
&lt;P&gt;Negative: more than 90 days and negative result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am posting the information that I have and what I am looking for.&lt;/P&gt;
&lt;TABLE width="596px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD colspan="3" width="202.578px"&gt;Have&lt;/TD&gt;
&lt;TD width="40.3438px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD colspan="5" width="314.078px"&gt;want&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="91.0781px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="71.5px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="40.3438px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="91.0781px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="71.5px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="71.5px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="91.0781px"&gt;date&lt;/TD&gt;
&lt;TD width="40px"&gt;ID&lt;/TD&gt;
&lt;TD width="71.5px"&gt;Result&lt;/TD&gt;
&lt;TD width="40.3438px"&gt;Test&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="91.0781px"&gt;date&lt;/TD&gt;
&lt;TD width="40px"&gt;ID&lt;/TD&gt;
&lt;TD width="71.5px"&gt;Result&lt;/TD&gt;
&lt;TD width="40px"&gt;Test&lt;/TD&gt;
&lt;TD width="71.5px"&gt;Status&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="91.0781px"&gt;1/7/2022&lt;/TD&gt;
&lt;TD width="40px"&gt;A&lt;/TD&gt;
&lt;TD width="71.5px"&gt;positive&lt;/TD&gt;
&lt;TD width="40.3438px"&gt;1&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="91.0781px"&gt;1/7/2022&lt;/TD&gt;
&lt;TD width="40px"&gt;A&lt;/TD&gt;
&lt;TD width="71.5px"&gt;positive&lt;/TD&gt;
&lt;TD width="40px"&gt;1&lt;/TD&gt;
&lt;TD width="71.5px"&gt;positive&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="91.0781px"&gt;11/17/2021&lt;/TD&gt;
&lt;TD width="40px"&gt;A&lt;/TD&gt;
&lt;TD width="71.5px"&gt;positive&lt;/TD&gt;
&lt;TD width="40.3438px"&gt;2&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="91.0781px"&gt;11/17/2021&lt;/TD&gt;
&lt;TD width="40px"&gt;A&lt;/TD&gt;
&lt;TD width="71.5px"&gt;positive&lt;/TD&gt;
&lt;TD width="40px"&gt;2&lt;/TD&gt;
&lt;TD width="71.5px"&gt;stable&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="91.0781px"&gt;12/12/2021&lt;/TD&gt;
&lt;TD width="40px"&gt;A&lt;/TD&gt;
&lt;TD width="71.5px"&gt;negative&lt;/TD&gt;
&lt;TD width="40.3438px"&gt;3&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="91.0781px"&gt;12/12/2021&lt;/TD&gt;
&lt;TD width="40px"&gt;A&lt;/TD&gt;
&lt;TD width="71.5px"&gt;negative&lt;/TD&gt;
&lt;TD width="40px"&gt;3&lt;/TD&gt;
&lt;TD width="71.5px"&gt;negative&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="91.0781px"&gt;1/3/2022&lt;/TD&gt;
&lt;TD width="40px"&gt;B&lt;/TD&gt;
&lt;TD width="71.5px"&gt;negative&lt;/TD&gt;
&lt;TD width="40.3438px"&gt;1&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="91.0781px"&gt;1/3/2022&lt;/TD&gt;
&lt;TD width="40px"&gt;B&lt;/TD&gt;
&lt;TD width="71.5px"&gt;negative&lt;/TD&gt;
&lt;TD width="40px"&gt;1&lt;/TD&gt;
&lt;TD width="71.5px"&gt;negative&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="91.0781px"&gt;5/3/2021&lt;/TD&gt;
&lt;TD width="40px"&gt;B&lt;/TD&gt;
&lt;TD width="71.5px"&gt;negative&lt;/TD&gt;
&lt;TD width="40.3438px"&gt;2&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="91.0781px"&gt;5/3/2021&lt;/TD&gt;
&lt;TD width="40px"&gt;B&lt;/TD&gt;
&lt;TD width="71.5px"&gt;negative&lt;/TD&gt;
&lt;TD width="40px"&gt;2&lt;/TD&gt;
&lt;TD width="71.5px"&gt;negative&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 22:40:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/788965#M252387</guid>
      <dc:creator>Moraes86</dc:creator>
      <dc:date>2022-01-07T22:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to classify with If condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/788973#M252395</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/375564"&gt;@Moraes86&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;This classification is based two conditions: date and result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Positive: for less than 30 days and positive result.&lt;/P&gt;
&lt;P&gt;Stable: between 30 and 60 days and positive result.&lt;/P&gt;
&lt;P&gt;Negative: more than 90 days and negative result.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What about other possibilities like positive more than 60 days, negative for fewer than 90 days?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 21:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/788973#M252395</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-01-07T21:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to classify with If condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/788974#M252396</link>
      <description>This is a great question. Thanks.&lt;BR /&gt;&lt;BR /&gt;For positive more than 60 days: the status is "positive-&amp;gt;60days"&lt;BR /&gt;For negative fewer than 90 days: the status is "negative".&lt;BR /&gt;&lt;BR /&gt;In addition, for inconclusive result: the status is "unknown".  &lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;&lt;BR /&gt;Daniel</description>
      <pubDate>Fri, 07 Jan 2022 21:54:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/788974#M252396</guid>
      <dc:creator>Moraes86</dc:creator>
      <dc:date>2022-01-07T21:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to classify with If condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/788975#M252397</link>
      <description>&lt;P&gt;Any other possible outcomes?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 22:03:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/788975#M252397</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-01-07T22:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to classify with If condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/788976#M252398</link>
      <description>No...only these that I mentioned</description>
      <pubDate>Fri, 07 Jan 2022 22:02:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/788976#M252398</guid>
      <dc:creator>Moraes86</dc:creator>
      <dc:date>2022-01-07T22:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to classify with If condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/788977#M252399</link>
      <description>&lt;P&gt;Please explain row 2 of your data, I don't understand the result.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 22:03:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/788977#M252399</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-01-07T22:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to classify with If condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/788978#M252400</link>
      <description>The result is the information that was obtained previously. I will do one correction in the table....because the result is different on the second column related to the information that I want.</description>
      <pubDate>Fri, 07 Jan 2022 22:07:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/788978#M252400</guid>
      <dc:creator>Moraes86</dc:creator>
      <dc:date>2022-01-07T22:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to classify with If condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/788979#M252401</link>
      <description>&lt;P&gt;Why does the date change in row 2?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do we determine from the data if we are in the 30 day category, or the 60 day category, or the 90 day category?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 22:11:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/788979#M252401</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-01-07T22:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to classify with If condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/788980#M252402</link>
      <description>The date change because we have more than one test for each ID. I can add one more column informing it. Does it make sense?</description>
      <pubDate>Fri, 07 Jan 2022 22:14:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/788980#M252402</guid>
      <dc:creator>Moraes86</dc:creator>
      <dc:date>2022-01-07T22:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to classify with If condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/788987#M252406</link>
      <description>&lt;P&gt;My first question was "how do you calculate days". You state rules in terms of days but do not supply any obvious to me pair of dates that would be used to calculate "days" for the category assignment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/375564"&gt;@Moraes86&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to classify the column "status" in three categories: positive, negative and stable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This classification is based two conditions: date and result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Positive: for less than 30 days and positive result.&lt;/P&gt;
&lt;P&gt;Stable: between 30 and 60 days and positive result.&lt;/P&gt;
&lt;P&gt;Negative: more than 90 days and negative result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am posting the information that I have and what I am looking for.&lt;/P&gt;
&lt;TABLE width="596px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD colspan="3" width="202.578px"&gt;Have&lt;/TD&gt;
&lt;TD width="40.3438px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD colspan="5" width="314.078px"&gt;want&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="91.0781px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="71.5px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="40.3438px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="91.0781px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="71.5px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="71.5px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="91.0781px"&gt;date&lt;/TD&gt;
&lt;TD width="40px"&gt;ID&lt;/TD&gt;
&lt;TD width="71.5px"&gt;Result&lt;/TD&gt;
&lt;TD width="40.3438px"&gt;Test&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="91.0781px"&gt;date&lt;/TD&gt;
&lt;TD width="40px"&gt;ID&lt;/TD&gt;
&lt;TD width="71.5px"&gt;Result&lt;/TD&gt;
&lt;TD width="40px"&gt;Test&lt;/TD&gt;
&lt;TD width="71.5px"&gt;Status&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="91.0781px"&gt;1/7/2022&lt;/TD&gt;
&lt;TD width="40px"&gt;A&lt;/TD&gt;
&lt;TD width="71.5px"&gt;positive&lt;/TD&gt;
&lt;TD width="40.3438px"&gt;1&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="91.0781px"&gt;1/7/2022&lt;/TD&gt;
&lt;TD width="40px"&gt;A&lt;/TD&gt;
&lt;TD width="71.5px"&gt;positive&lt;/TD&gt;
&lt;TD width="40px"&gt;1&lt;/TD&gt;
&lt;TD width="71.5px"&gt;positive&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="91.0781px"&gt;11/17/2021&lt;/TD&gt;
&lt;TD width="40px"&gt;A&lt;/TD&gt;
&lt;TD width="71.5px"&gt;positive&lt;/TD&gt;
&lt;TD width="40.3438px"&gt;2&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="91.0781px"&gt;11/17/2021&lt;/TD&gt;
&lt;TD width="40px"&gt;A&lt;/TD&gt;
&lt;TD width="71.5px"&gt;positive&lt;/TD&gt;
&lt;TD width="40px"&gt;2&lt;/TD&gt;
&lt;TD width="71.5px"&gt;stable&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="91.0781px"&gt;12/12/2021&lt;/TD&gt;
&lt;TD width="40px"&gt;A&lt;/TD&gt;
&lt;TD width="71.5px"&gt;negative&lt;/TD&gt;
&lt;TD width="40.3438px"&gt;3&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="91.0781px"&gt;12/12/2021&lt;/TD&gt;
&lt;TD width="40px"&gt;A&lt;/TD&gt;
&lt;TD width="71.5px"&gt;negative&lt;/TD&gt;
&lt;TD width="40px"&gt;3&lt;/TD&gt;
&lt;TD width="71.5px"&gt;negative&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="91.0781px"&gt;1/3/2022&lt;/TD&gt;
&lt;TD width="40px"&gt;B&lt;/TD&gt;
&lt;TD width="71.5px"&gt;negative&lt;/TD&gt;
&lt;TD width="40.3438px"&gt;1&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="91.0781px"&gt;1/3/2022&lt;/TD&gt;
&lt;TD width="40px"&gt;B&lt;/TD&gt;
&lt;TD width="71.5px"&gt;negative&lt;/TD&gt;
&lt;TD width="40px"&gt;1&lt;/TD&gt;
&lt;TD width="71.5px"&gt;negative&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="91.0781px"&gt;5/3/2021&lt;/TD&gt;
&lt;TD width="40px"&gt;B&lt;/TD&gt;
&lt;TD width="71.5px"&gt;negative&lt;/TD&gt;
&lt;TD width="40.3438px"&gt;2&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="91.0781px"&gt;5/3/2021&lt;/TD&gt;
&lt;TD width="40px"&gt;B&lt;/TD&gt;
&lt;TD width="71.5px"&gt;negative&lt;/TD&gt;
&lt;TD width="40px"&gt;2&lt;/TD&gt;
&lt;TD width="71.5px"&gt;negative&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 23:19:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/788987#M252406</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-01-07T23:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to classify with If condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/788990#M252408</link>
      <description>This is my question as well. I would like to use "today" as a reference of date. For example, today is 01/07/2022, so my question is how to use it to calculate.</description>
      <pubDate>Fri, 07 Jan 2022 23:27:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/788990#M252408</guid>
      <dc:creator>Moraes86</dc:creator>
      <dc:date>2022-01-07T23:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to classify with If condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/789001#M252412</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/375564"&gt;@Moraes86&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;This is my question as well. I would like to use "today" as a reference of date. For example, today is 01/07/2022, so my question is how to use it to calculate.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you want to use the current date &lt;STRONG&gt;and&lt;/STRONG&gt; if your current date variable is actually a SAS date then this is easy:&lt;/P&gt;
&lt;PRE&gt;data want;
   set have;
   days = today() - date;
run;&lt;/PRE&gt;
&lt;P&gt;SAS date values are numbers of days, the Today() function returns today's date as date value so subtraction works just fine to get number of days.&lt;/P&gt;
&lt;P&gt;If your Date variable is not actually a SAS date value, as in numeric variable and from what you show some sort of mmddyy format then you want to create a date value such as with: SASdate= input(date, mmddyy10.); and use the SASdate in the comparison.&lt;/P&gt;
&lt;P&gt;You really want a SAS date valued variable as there are a LOT of things that can be done with them.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 23:50:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/789001#M252412</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-01-07T23:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to classify with If condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/789004#M252414</link>
      <description>Ok ballardw. Thank you very much for your help.</description>
      <pubDate>Fri, 07 Jan 2022 23:59:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-classify-with-If-condition/m-p/789004#M252414</guid>
      <dc:creator>Moraes86</dc:creator>
      <dc:date>2022-01-07T23:59:26Z</dc:date>
    </item>
  </channel>
</rss>

