<?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: Converting date to Character in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Converting-date-to-Character/m-p/90393#M25815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this do what you want?:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA WANT;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SET HAVE;&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATENEW=PUT(DATE, yymmddn8.);&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Oct 2012 18:59:44 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2012-10-09T18:59:44Z</dc:date>
    <item>
      <title>Converting date to Character</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Converting-date-to-Character/m-p/90392#M25814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying to converting a date to a string of characters using the PUT function:&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;DATENEW=PUT(DATE, $8.);&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently my date is in the YYYYMMDD format. And the output of this code transformed the date into numbers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;19860108 becomes 9504&lt;/P&gt;&lt;P&gt;19860109 becomes 9505&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So on and so forth. I think the output transformed the YYYYMMDD format into the SAS date format where 19600101 is zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I transform the YYYYMMDD into characters while keeping exactly what I see previously?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks guys!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 18:32:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Converting-date-to-Character/m-p/90392#M25814</guid>
      <dc:creator>Benn</dc:creator>
      <dc:date>2012-10-09T18:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Converting date to Character</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Converting-date-to-Character/m-p/90393#M25815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this do what you want?:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA WANT;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SET HAVE;&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATENEW=PUT(DATE, yymmddn8.);&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 18:59:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Converting-date-to-Character/m-p/90393#M25815</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-09T18:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Converting date to Character</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Converting-date-to-Character/m-p/90394#M25816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You also have the alternative of leaving the data exactly as is.&amp;nbsp; When printing, you can always apply a format so you can view it in a more familiar form.&amp;nbsp; That also gives you flexibility of selecting the format you want for each report.&amp;nbsp; If you would like to assign a default format, you can add the FORMAT statement in the DATA step.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 19:30:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Converting-date-to-Character/m-p/90394#M25816</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-10-09T19:30:49Z</dc:date>
    </item>
  </channel>
</rss>

