<?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 can I add days to yymmdd date column in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-can-I-add-days-to-yymmdd-date-column/m-p/343154#M78753</link>
    <description>&lt;P&gt;To do this, you will need to study a little on how SAS handles dates. &amp;nbsp;If BIRTHDT were actually a SAS date, you could just use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;newvar = birthdt&amp;nbsp;+ 65;&lt;/P&gt;
&lt;P&gt;format newvar&amp;nbsp;yymmdd10.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I suspect that BIRTHDT is really just a number and 19110111 is really just 19,110,111. &amp;nbsp;In that case, it needs to be converted to a SAS date first:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;birthdt&amp;nbsp;= input(put(birthdt,8.), yymmdd8.);&lt;/P&gt;
&lt;P&gt;format birthdt&amp;nbsp;yymmdd10.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you can use newvar = birthdt&amp;nbsp;+ 65;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Mar 2017 02:27:01 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2017-03-22T02:27:01Z</dc:date>
    <item>
      <title>how can I add days to yymmdd date column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-can-I-add-days-to-yymmdd-date-column/m-p/343153#M78752</link>
      <description>&lt;P&gt;I have one column that demonstrate each people's birthd.&lt;/P&gt;&lt;P&gt;Column contains 2million people's information(each are different and format yymmdd8. / ex : 19910111)&lt;/P&gt;&lt;P&gt;I want to dadd 65days to each people's birthd.&lt;/P&gt;&lt;P&gt;Much help appreciated. Thanks. Jamie.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 02:13:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-can-I-add-days-to-yymmdd-date-column/m-p/343153#M78752</guid>
      <dc:creator>jamie0111</dc:creator>
      <dc:date>2017-03-22T02:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: how can I add days to yymmdd date column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-can-I-add-days-to-yymmdd-date-column/m-p/343154#M78753</link>
      <description>&lt;P&gt;To do this, you will need to study a little on how SAS handles dates. &amp;nbsp;If BIRTHDT were actually a SAS date, you could just use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;newvar = birthdt&amp;nbsp;+ 65;&lt;/P&gt;
&lt;P&gt;format newvar&amp;nbsp;yymmdd10.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I suspect that BIRTHDT is really just a number and 19110111 is really just 19,110,111. &amp;nbsp;In that case, it needs to be converted to a SAS date first:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;birthdt&amp;nbsp;= input(put(birthdt,8.), yymmdd8.);&lt;/P&gt;
&lt;P&gt;format birthdt&amp;nbsp;yymmdd10.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you can use newvar = birthdt&amp;nbsp;+ 65;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 02:27:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-can-I-add-days-to-yymmdd-date-column/m-p/343154#M78753</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-03-22T02:27:01Z</dc:date>
    </item>
  </channel>
</rss>

