<?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 How do I turn ddMMMyyyy into one day prior? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-turn-ddMMMyyyy-into-one-day-prior/m-p/45652#M12034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are doing it in proc sql you already have the correct syntax if you leave off the parentheses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A SAS date - 1 is equal to the SAS date of the prior day.&amp;nbsp; Thus, in a datastep, EXPR_DATE=EFFECTIVE_DATE - 1; would work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Aug 2011 20:47:59 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2011-08-09T20:47:59Z</dc:date>
    <item>
      <title>How do I turn ddMMMyyyy into one day prior?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-turn-ddMMMyyyy-into-one-day-prior/m-p/45651#M12033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table with a column containing Effective Dates in DDMMMYYYY format.&amp;nbsp; Expiration Date values don't exist on the table so I need to create my own values for 'Expiration Date'.&amp;nbsp; I need to Select (EFFECTIVE_DATE - 1 as EXPR_DATE) essentially so that if the Effective Date reads 02APR2011 the new field EXPR_DT will show 01APR2011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 20:43:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-turn-ddMMMyyyy-into-one-day-prior/m-p/45651#M12033</guid>
      <dc:creator>JohnWiz</dc:creator>
      <dc:date>2011-08-09T20:43:57Z</dc:date>
    </item>
    <item>
      <title>How do I turn ddMMMyyyy into one day prior?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-turn-ddMMMyyyy-into-one-day-prior/m-p/45652#M12034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are doing it in proc sql you already have the correct syntax if you leave off the parentheses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A SAS date - 1 is equal to the SAS date of the prior day.&amp;nbsp; Thus, in a datastep, EXPR_DATE=EFFECTIVE_DATE - 1; would work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 20:47:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-turn-ddMMMyyyy-into-one-day-prior/m-p/45652#M12034</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-08-09T20:47:59Z</dc:date>
    </item>
    <item>
      <title>How do I turn ddMMMyyyy into one day prior?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-turn-ddMMMyyyy-into-one-day-prior/m-p/45653#M12035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; awesome.&amp;nbsp; hadn't even bother trying a proc yet.&amp;nbsp; Thanks a bunch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 20:50:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-turn-ddMMMyyyy-into-one-day-prior/m-p/45653#M12035</guid>
      <dc:creator>JohnWiz</dc:creator>
      <dc:date>2011-08-09T20:50:06Z</dc:date>
    </item>
    <item>
      <title>How do I turn ddMMMyyyy into one day prior?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-turn-ddMMMyyyy-into-one-day-prior/m-p/45654#M12036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS stores dates internally as the number of days from 1/1/1960, so date arithmetic is simple.&amp;nbsp; If effective_date is a SAS date, then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expr_dt = effective_date-1;&lt;/P&gt;&lt;P&gt;FORMAT expr_dt date9.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should do it.&amp;nbsp; If effective_date is a character string, then you need to first convert it to a SAS date using the INPUT function, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;effective_date_new= INPUT(effective_date, anydate9.);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc Muhlbaier&lt;/P&gt;&lt;P&gt;Duke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 20:52:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-turn-ddMMMyyyy-into-one-day-prior/m-p/45654#M12036</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2011-08-09T20:52:06Z</dc:date>
    </item>
  </channel>
</rss>

