<?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: Computing a Date Column in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Computing-a-Date-Column/m-p/111114#M9497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Doc, i'll try that out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Oct 2012 15:54:13 GMT</pubDate>
    <dc:creator>CesarOmarHR</dc:creator>
    <dc:date>2012-10-30T15:54:13Z</dc:date>
    <item>
      <title>Computing a Date Column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Computing-a-Date-Column/m-p/111109#M9492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to generate a date column that aproximate date values to a fixed day limit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i have 02AUG2011 i would need 31AUG2011 (For days between 1 and 14 the desired date is the 30th/31th)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 15SEP2012 i would need to recoded that value with 15OCT2012 (For days between 15 and the last day of the month the desired date is the next 15th)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i create a recoded column with those specifications?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cesar Hernandez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 22:06:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Computing-a-Date-Column/m-p/111109#M9492</guid>
      <dc:creator>CesarOmarHR</dc:creator>
      <dc:date>2012-10-29T22:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Computing a Date Column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Computing-a-Date-Column/m-p/111110#M9493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try the code below:&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;input date mmddyy10.;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;08/01/2012&lt;/P&gt;&lt;P&gt;08/15/2012&lt;/P&gt;&lt;P&gt;08/20/2012&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt; set have;&lt;/P&gt;&lt;P&gt; new_date=ifn(day(date)&amp;lt;15,intnx('month',date,0,'e'),intnx('month',date,1,'m'));&lt;/P&gt;&lt;P&gt; format New_date date date9.;&lt;/P&gt;&lt;P&gt; proc print;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 22:15:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Computing-a-Date-Column/m-p/111110#M9493</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-10-29T22:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Computing a Date Column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Computing-a-Date-Column/m-p/111111#M9494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where do i type this code? In a recoded column option, advance expression or where?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 22:29:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Computing-a-Date-Column/m-p/111111#M9494</guid>
      <dc:creator>CesarOmarHR</dc:creator>
      <dc:date>2012-10-29T22:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Computing a Date Column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Computing-a-Date-Column/m-p/111112#M9495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As long as you add a run statement at the bottom of Linlin's 2nd datastep (i.e.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;data want;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; new_date=ifn(day(date)&amp;lt;15,intnx('month',date,0,'e'),intnx('month',date,1,'m'));&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; format New_date date date9.;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;both datasteps could be entered and run by selecting program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 23:15:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Computing-a-Date-Column/m-p/111112#M9495</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-29T23:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Computing a Date Column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Computing-a-Date-Column/m-p/111113#M9496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that Cesar is looking for how to do this in the Query Builder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data transformation&lt;/P&gt;&lt;P&gt;ifn(day(date)&amp;lt;15,intnx('month',date,0,'e'),intnx('month',date,1,'m'))&lt;/P&gt;&lt;P&gt;could be entered into the "advanced expression" in creating a new column in the Query Builder and then the format applied on the next screen.&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, 30 Oct 2012 15:49:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Computing-a-Date-Column/m-p/111113#M9496</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-10-30T15:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Computing a Date Column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Computing-a-Date-Column/m-p/111114#M9497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Doc, i'll try that out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 15:54:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Computing-a-Date-Column/m-p/111114#M9497</guid>
      <dc:creator>CesarOmarHR</dc:creator>
      <dc:date>2012-10-30T15:54:13Z</dc:date>
    </item>
  </channel>
</rss>

