<?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: Format Help in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Format-Help/m-p/294001#M61311</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test1_int (drop=_displaymonth);
set test1 (rename=(displaymonth=_displaymonth));
displaymonth = put(datepart(_displaymonth),yymmddn8.);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then use that in your join instead of test1.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2016 12:47:58 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-08-25T12:47:58Z</dc:date>
    <item>
      <title>Format Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-Help/m-p/293997#M61309</link>
      <description>&lt;P&gt;If one dataset (Test1) and I have variable ‘displaymonth’ with the format DATETIME20.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the other dataset (Test2) variable ‘displaymonth’ $8.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I go about getting the first&amp;nbsp;dataset (Test1) ‘displaymonth’ to be the same as Test2? So when I merge the 2 they match?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried this but doesn't work&lt;/P&gt;
&lt;P&gt;Data Test1;&lt;BR /&gt;Set Test1;&lt;BR /&gt;Applseq=applseq+0;&lt;BR /&gt;put displaymonth=$8.;&lt;BR /&gt;Run&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 12:39:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-Help/m-p/293997#M61309</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2016-08-25T12:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Format Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-Help/m-p/294001#M61311</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test1_int (drop=_displaymonth);
set test1 (rename=(displaymonth=_displaymonth));
displaymonth = put(datepart(_displaymonth),yymmddn8.);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then use that in your join instead of test1.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 12:47:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-Help/m-p/294001#M61311</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-25T12:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Format Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-Help/m-p/294034#M61321</link>
      <description>&lt;P&gt;Alternatively:&lt;/P&gt;
&lt;PRE&gt;proc sql;
  create table WANT as
  select...
  from   TEST1 A
  full join TEST2 B 
  on      A.DISPLAYMONTH=input(B.DISPLAYMONTH,yymmdd8.);
quit;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Aug 2016 13:58:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-Help/m-p/294034#M61321</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-08-25T13:58:49Z</dc:date>
    </item>
  </channel>
</rss>

