<?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: calculate one year before the date in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/calculate-one-year-before-the-date/m-p/711326#M26896</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data have;
input ID DOB :ddmmyy10.;
format dob ddmmyy10.;
cards;
1   09/07/2003

2  10/03/2004

3  08/08/2003
;

data want;
 set have;
 want =intnx('year',dob,-1,'s');
 format want ddmmyy10.; 
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 14 Jan 2021 00:13:59 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2021-01-14T00:13:59Z</dc:date>
    <item>
      <title>calculate one year before the date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/calculate-one-year-before-the-date/m-p/711323#M26895</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a dataset:&lt;/P&gt;&lt;P&gt;ID DOB&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp; 09/07/2003&lt;/P&gt;&lt;P&gt;2&amp;nbsp; 10/03/2004&lt;/P&gt;&lt;P&gt;3&amp;nbsp; 08/08/2003&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want dataset One year Before:&lt;/P&gt;&lt;P&gt;ID&amp;nbsp;&amp;nbsp; DOB&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 09/07/2002&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;10/03/2003&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 08/08/2002&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 23:46:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/calculate-one-year-before-the-date/m-p/711323#M26895</guid>
      <dc:creator>Smitha9</dc:creator>
      <dc:date>2021-01-13T23:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: calculate one year before the date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/calculate-one-year-before-the-date/m-p/711326#M26896</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data have;
input ID DOB :ddmmyy10.;
format dob ddmmyy10.;
cards;
1   09/07/2003

2  10/03/2004

3  08/08/2003
;

data want;
 set have;
 want =intnx('year',dob,-1,'s');
 format want ddmmyy10.; 
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jan 2021 00:13:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/calculate-one-year-before-the-date/m-p/711326#M26896</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2021-01-14T00:13:59Z</dc:date>
    </item>
  </channel>
</rss>

