<?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: Updating a date in SAS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Updating-a-date-in-SAS/m-p/143191#M38094</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data have;&lt;BR /&gt;input id date;&lt;BR /&gt;format date mmddyy10.;&lt;BR /&gt;informat date mmddyy10.;&lt;BR /&gt;cards;&lt;BR /&gt;1 10/25/2015&lt;BR /&gt;2 10/15/2015&lt;BR /&gt;3 10/10/2015&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt;set have;&lt;BR /&gt;if id ne 1 then date_new=put(date,mmddyy10.);&lt;BR /&gt;else date_new=put(date,date9.);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Sep 2014 18:49:55 GMT</pubDate>
    <dc:creator>Hima</dc:creator>
    <dc:date>2014-09-12T18:49:55Z</dc:date>
    <item>
      <title>Updating a date in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Updating-a-date-in-SAS/m-p/143190#M38093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello: I am an SQL professional- brand new to SAS. I need to update just one row in SAS table. The datafield is a date type. I am just trying to update one row, set the field = "01Oct2015" where the id = xyz. The code runs and the value is set to a period. I know this must be a format issue. Could someone please help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 18:41:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Updating-a-date-in-SAS/m-p/143190#M38093</guid>
      <dc:creator>nimmis</dc:creator>
      <dc:date>2014-09-12T18:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a date in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Updating-a-date-in-SAS/m-p/143191#M38094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data have;&lt;BR /&gt;input id date;&lt;BR /&gt;format date mmddyy10.;&lt;BR /&gt;informat date mmddyy10.;&lt;BR /&gt;cards;&lt;BR /&gt;1 10/25/2015&lt;BR /&gt;2 10/15/2015&lt;BR /&gt;3 10/10/2015&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt;set have;&lt;BR /&gt;if id ne 1 then date_new=put(date,mmddyy10.);&lt;BR /&gt;else date_new=put(date,date9.);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 18:49:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Updating-a-date-in-SAS/m-p/143191#M38094</guid>
      <dc:creator>Hima</dc:creator>
      <dc:date>2014-09-12T18:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a date in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Updating-a-date-in-SAS/m-p/143192#M38095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;update have&lt;/P&gt;&lt;P&gt;set field='01Oct2015'd&lt;/P&gt;&lt;P&gt;where id='xyz';&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 18:59:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Updating-a-date-in-SAS/m-p/143192#M38095</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-09-12T18:59:15Z</dc:date>
    </item>
  </channel>
</rss>

