<?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: Modify date of an observations SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Modify-date-of-an-observations-SAS/m-p/296812#M62244</link>
    <description>&lt;P&gt;The date your are trying to assign is a string, dates in SAS a numerical.&lt;/P&gt;
&lt;P&gt;If you wish to&amp;nbsp;express a data constant, you need to use the date format and using a data literal:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'01Jan205'd&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2016 19:36:08 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2016-09-06T19:36:08Z</dc:date>
    <item>
      <title>Modify date of an observations SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-date-of-an-observations-SAS/m-p/296810#M62243</link>
      <description>&lt;P&gt;Good morning:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an dataset and i have to replace some dates (including formats):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i was trying to use this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;/P&gt;
&lt;P&gt;input&amp;nbsp;&amp;nbsp; ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; birth_day:mmddyy10.;&lt;/P&gt;
&lt;P&gt;format&amp;nbsp;&amp;nbsp; &amp;nbsp; birth_day mmddyy10.;&lt;/P&gt;
&lt;P&gt;cards;&lt;/P&gt;
&lt;P&gt;1515&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03/22/2000&lt;/P&gt;
&lt;P&gt;1533&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12/19/2000&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;if ID = 1515 then birth_day = '01/26/2003';&lt;/P&gt;
&lt;P&gt;if ID = 1533 then birth_day = '01/30/2004';&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried this estatements and it is not working&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anybody give me some hints please??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 19:29:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-date-of-an-observations-SAS/m-p/296810#M62243</guid>
      <dc:creator>jonatan_velarde</dc:creator>
      <dc:date>2016-09-06T19:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Modify date of an observations SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-date-of-an-observations-SAS/m-p/296812#M62244</link>
      <description>&lt;P&gt;The date your are trying to assign is a string, dates in SAS a numerical.&lt;/P&gt;
&lt;P&gt;If you wish to&amp;nbsp;express a data constant, you need to use the date format and using a data literal:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'01Jan205'd&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 19:36:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-date-of-an-observations-SAS/m-p/296812#M62244</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-09-06T19:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Modify date of an observations SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-date-of-an-observations-SAS/m-p/296814#M62246</link>
      <description>&lt;P&gt;Thanks for your answer:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i use this format:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;mmddyy10.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the original data is formated like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ill try and give notices&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 19:39:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-date-of-an-observations-SAS/m-p/296814#M62246</guid>
      <dc:creator>jonatan_velarde</dc:creator>
      <dc:date>2016-09-06T19:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Modify date of an observations SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-date-of-an-observations-SAS/m-p/296827#M62249</link>
      <description>&lt;P&gt;The value of a Date literal &lt;STRONG&gt;must&lt;/STRONG&gt; be in the form of 'ddMONyy'd or 'ddMONyyyy'd for SAS to recognize it as a date. If you have assigned a format of mmddyy10. to the variable then that is the default appearance the value will have in your data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 20:11:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-date-of-an-observations-SAS/m-p/296827#M62249</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-09-06T20:11:28Z</dc:date>
    </item>
  </channel>
</rss>

