<?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: Convert numeric to date format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to-date-format/m-p/891482#M352183</link>
    <description>&lt;P&gt;You answered one question, but not the other.&amp;nbsp; Without knowing the variable name you are talking about, we have to guess which variable you mean.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;took a good guess.&amp;nbsp; I suggest you try his solution.&amp;nbsp; But be consistent in your choice of names for the new variable:&amp;nbsp; new_date vs. newdate.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Aug 2023 13:14:45 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2023-08-29T13:14:45Z</dc:date>
    <item>
      <title>Convert numeric to date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to-date-format/m-p/891467#M352172</link>
      <description>&lt;PRE&gt;&lt;CODE class=""&gt;DATA want;
SET have ;

	FORMAT Open_Dt DATE9.;
 Open_Dt= PUT (TAKE_UP_DATE_CD,YYMMDD10.) ;
RENAME DIFF =DIFF_AMT ;

RUN &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;can you please assist in converting this a numberic value to date format&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;expected outcome&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rixile106_0-1693311393703.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87248i748A381E935DDFB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rixile106_0-1693311393703.png" alt="Rixile106_0-1693311393703.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 12:18:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to-date-format/m-p/891467#M352172</guid>
      <dc:creator>Rixile106</dc:creator>
      <dc:date>2023-08-29T12:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numeric to date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to-date-format/m-p/891469#M352174</link>
      <description>&lt;P&gt;What is the name of the variable that you wish to convert?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Give a few examples of the values that it currently has.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 12:37:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to-date-format/m-p/891469#M352174</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2023-08-29T12:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numeric to date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to-date-format/m-p/891473#M352175</link>
      <description>it is a numeric value</description>
      <pubDate>Tue, 29 Aug 2023 12:47:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to-date-format/m-p/891473#M352175</guid>
      <dc:creator>Rixile106</dc:creator>
      <dc:date>2023-08-29T12:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numeric to date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to-date-format/m-p/891475#M352177</link>
      <description>&lt;P&gt;You get no information until you actually answer my questions.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 12:51:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to-date-format/m-p/891475#M352177</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2023-08-29T12:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numeric to date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to-date-format/m-p/891478#M352179</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rixile106_0-1693313893486.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87249i7B224BB101B2CAE3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rixile106_0-1693313893486.png" alt="Rixile106_0-1693313893486.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 12:58:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to-date-format/m-p/891478#M352179</guid>
      <dc:creator>Rixile106</dc:creator>
      <dc:date>2023-08-29T12:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numeric to date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to-date-format/m-p/891480#M352181</link>
      <description>&lt;P&gt;Numbers like this look like dates to human, but are not dates to SAS. The conversion is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;newdate=input(put(date,8.),yymmdd8.);
format new_date date9.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Aug 2023 13:05:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to-date-format/m-p/891480#M352181</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-08-29T13:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numeric to date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to-date-format/m-p/891482#M352183</link>
      <description>&lt;P&gt;You answered one question, but not the other.&amp;nbsp; Without knowing the variable name you are talking about, we have to guess which variable you mean.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;took a good guess.&amp;nbsp; I suggest you try his solution.&amp;nbsp; But be consistent in your choice of names for the new variable:&amp;nbsp; new_date vs. newdate.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 13:14:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to-date-format/m-p/891482#M352183</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2023-08-29T13:14:45Z</dc:date>
    </item>
  </channel>
</rss>

