<?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: Parsing out date9. fields for table join in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Parsing-out-date9-fields-for-table-join/m-p/240335#M55597</link>
    <description>Or the PUT function and a year month format. &lt;BR /&gt;&lt;BR /&gt;put(termination_date, yymon7.)=put(time_id, yymon7.);</description>
    <pubDate>Mon, 21 Dec 2015 21:36:19 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-12-21T21:36:19Z</dc:date>
    <item>
      <title>Parsing out date9. fields for table join</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Parsing-out-date9-fields-for-table-join/m-p/240332#M55595</link>
      <description>&lt;P&gt;I'm needing to use a termination date in date9. format to join to another table that has monthly records with a time_id also in date9. format. &amp;nbsp;The problem is that the time_id always references the last day of the month (31JAN2015, 28FEB2015, etc.) and my termination date can be any day of the month. &amp;nbsp;I just need to use a member_id in combination with the&amp;nbsp;termination month/year to join to the other table with member_id and month/year, disregarding day of the month. &amp;nbsp;SUBSTR requires characters and the dates are numeric. &amp;nbsp;I tried using&amp;nbsp;MONTH(TERM_DT) but that gives the number of the month and I need the 3 character format for month. &amp;nbsp;Any other ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2015 21:25:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Parsing-out-date9-fields-for-table-join/m-p/240332#M55595</guid>
      <dc:creator>reneerabbit</dc:creator>
      <dc:date>2015-12-21T21:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing out date9. fields for table join</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Parsing-out-date9-fields-for-table-join/m-p/240333#M55596</link>
      <description>Use the INTNX function to move your date to the last of the month.&lt;BR /&gt;&lt;BR /&gt;intnx('month', date, 0, 'e')</description>
      <pubDate>Mon, 21 Dec 2015 21:30:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Parsing-out-date9-fields-for-table-join/m-p/240333#M55596</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-21T21:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing out date9. fields for table join</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Parsing-out-date9-fields-for-table-join/m-p/240335#M55597</link>
      <description>Or the PUT function and a year month format. &lt;BR /&gt;&lt;BR /&gt;put(termination_date, yymon7.)=put(time_id, yymon7.);</description>
      <pubDate>Mon, 21 Dec 2015 21:36:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Parsing-out-date9-fields-for-table-join/m-p/240335#M55597</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-21T21:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing out date9. fields for table join</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Parsing-out-date9-fields-for-table-join/m-p/240372#M55599</link>
      <description>&lt;P&gt;It would be better to post some data to explain your questions. &amp;nbsp;GROUPFORMAT + FORMAT is for such scenario .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
 merge a b;
 by date groupformat ;
 format date monyy.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 01:15:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Parsing-out-date9-fields-for-table-join/m-p/240372#M55599</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-12-22T01:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing out date9. fields for table join</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Parsing-out-date9-fields-for-table-join/m-p/240435#M55605</link>
      <description>&lt;P&gt;Thanks - this worked perfectly! &amp;nbsp;I didn't know just how versatile intnx was...&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 13:26:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Parsing-out-date9-fields-for-table-join/m-p/240435#M55605</guid>
      <dc:creator>reneerabbit</dc:creator>
      <dc:date>2015-12-22T13:26:42Z</dc:date>
    </item>
  </channel>
</rss>

