<?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: Numeric to Character and Concatenation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Numeric-to-Character-and-Concatenation/m-p/664410#M198490</link>
    <description>&lt;P&gt;Why a character variable? There is a SAS format to display dates that way.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;date_want = mdy(month, 1, year);
format date_want yymmd.;

*convert to character;
date_char = put(date_want, yymmd.);
date_char2&amp;nbsp;=&amp;nbsp;catx('-',&amp;nbsp;year,&amp;nbsp;put(month,&amp;nbsp;z2.));&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 23 Jun 2020 17:45:46 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-06-23T17:45:46Z</dc:date>
    <item>
      <title>Numeric to Character and Concatenation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Numeric-to-Character-and-Concatenation/m-p/664406#M198487</link>
      <description>&lt;P&gt;I always mess this up....I have a year numeric variable and a month numeric variable. I would like to make a character variable called DateChar and have it look like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2003-03&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note the leading 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 17:39:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Numeric-to-Character-and-Concatenation/m-p/664406#M198487</guid>
      <dc:creator>BCNAV</dc:creator>
      <dc:date>2020-06-23T17:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric to Character and Concatenation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Numeric-to-Character-and-Concatenation/m-p/664410#M198490</link>
      <description>&lt;P&gt;Why a character variable? There is a SAS format to display dates that way.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;date_want = mdy(month, 1, year);
format date_want yymmd.;

*convert to character;
date_char = put(date_want, yymmd.);
date_char2&amp;nbsp;=&amp;nbsp;catx('-',&amp;nbsp;year,&amp;nbsp;put(month,&amp;nbsp;z2.));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Jun 2020 17:45:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Numeric-to-Character-and-Concatenation/m-p/664410#M198490</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-06-23T17:45:46Z</dc:date>
    </item>
  </channel>
</rss>

