<?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 Numerical Date to Character that is in the format ddmonyyyy, in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Numerical-Date-to-Character-that-is-in-the-format-ddmonyyyy/m-p/695876#M212425</link>
    <description>&lt;P&gt;date1 =12001&lt;/P&gt;&lt;P&gt;Create a new variable Chdate that converts the date1 variable to a character variable that is in the format ddmonyyyy, such as 11NOV1992.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my prog :&lt;/P&gt;&lt;P&gt;Data X;&lt;/P&gt;&lt;P&gt;date1 =12001;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chdate=put(date1,9.);&lt;BR /&gt;format Chdate ddmonyyyy. ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;output&amp;nbsp;&lt;/P&gt;&lt;P&gt;date1 Chdate&lt;/P&gt;&lt;P&gt;12001&amp;nbsp;&lt;STRONG&gt;12001&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Chdate should be in format ddmonyy.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Nov 2020 10:32:56 GMT</pubDate>
    <dc:creator>librasonali</dc:creator>
    <dc:date>2020-11-02T10:32:56Z</dc:date>
    <item>
      <title>Numerical Date to Character that is in the format ddmonyyyy,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Numerical-Date-to-Character-that-is-in-the-format-ddmonyyyy/m-p/695876#M212425</link>
      <description>&lt;P&gt;date1 =12001&lt;/P&gt;&lt;P&gt;Create a new variable Chdate that converts the date1 variable to a character variable that is in the format ddmonyyyy, such as 11NOV1992.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my prog :&lt;/P&gt;&lt;P&gt;Data X;&lt;/P&gt;&lt;P&gt;date1 =12001;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chdate=put(date1,9.);&lt;BR /&gt;format Chdate ddmonyyyy. ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;output&amp;nbsp;&lt;/P&gt;&lt;P&gt;date1 Chdate&lt;/P&gt;&lt;P&gt;12001&amp;nbsp;&lt;STRONG&gt;12001&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Chdate should be in format ddmonyy.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 10:32:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Numerical-Date-to-Character-that-is-in-the-format-ddmonyyyy/m-p/695876#M212425</guid>
      <dc:creator>librasonali</dc:creator>
      <dc:date>2020-11-02T10:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical Date to Character that is in the format ddmonyyyy,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Numerical-Date-to-Character-that-is-in-the-format-ddmonyyyy/m-p/695879#M212427</link>
      <description>&lt;P&gt;Use the DATE9. format.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 10:34:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Numerical-Date-to-Character-that-is-in-the-format-ddmonyyyy/m-p/695879#M212427</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-02T10:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical Date to Character that is in the format ddmonyyyy,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Numerical-Date-to-Character-that-is-in-the-format-ddmonyyyy/m-p/695882#M212430</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data X;
   date1 = 12001; 
   Chdate = put(date1,date9.);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Nov 2020 10:38:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Numerical-Date-to-Character-that-is-in-the-format-ddmonyyyy/m-p/695882#M212430</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-11-02T10:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical Date to Character that is in the format ddmonyyyy,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Numerical-Date-to-Character-that-is-in-the-format-ddmonyyyy/m-p/695886#M212431</link>
      <description>if date1 =201411&lt;BR /&gt;/*where initial 4 digits are year and rest months */&lt;BR /&gt;then what will be the format ?&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Nov 2020 10:50:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Numerical-Date-to-Character-that-is-in-the-format-ddmonyyyy/m-p/695886#M212431</guid>
      <dc:creator>librasonali</dc:creator>
      <dc:date>2020-11-02T10:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical Date to Character that is in the format ddmonyyyy,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Numerical-Date-to-Character-that-is-in-the-format-ddmonyyyy/m-p/695888#M212432</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/345043"&gt;@librasonali&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;if date1 =201411&lt;BR /&gt;/*where initial 4 digits are year and rest months */&lt;BR /&gt;then what will be the format ?&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If that is stored as a number, you need to first convert it to a SAS date:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;date1 = input(put(date1,z6.),yymmn6.);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;for the DATE9. format to work. You will see that the resulting date is the first of the month.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 10:56:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Numerical-Date-to-Character-that-is-in-the-format-ddmonyyyy/m-p/695888#M212432</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-02T10:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical Date to Character that is in the format ddmonyyyy,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Numerical-Date-to-Character-that-is-in-the-format-ddmonyyyy/m-p/695891#M212435</link>
      <description>&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Working-with-Dates-and-Times-in-SAS-Tutorial/ta-p/424354" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Working-with-Dates-and-Times-in-SAS-Tutorial/ta-p/424354&lt;/A&gt; has a PDF with much information about dates.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 10:59:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Numerical-Date-to-Character-that-is-in-the-format-ddmonyyyy/m-p/695891#M212435</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-02T10:59:50Z</dc:date>
    </item>
  </channel>
</rss>

