<?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: Character to numeric convertion in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Character-to-numeric-convertion/m-p/305327#M8701</link>
    <description>&lt;P&gt;Use the input() function, together with an appropriate date informat (see the Base SAS documentation).&lt;/P&gt;</description>
    <pubDate>Tue, 18 Oct 2016 10:22:52 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2016-10-18T10:22:52Z</dc:date>
    <item>
      <title>Character to numeric convertion</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Character-to-numeric-convertion/m-p/305325#M8700</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My input data &lt;STRONG&gt;2016- Jan (Charactor)&amp;nbsp;&lt;/STRONG&gt;I need output only month like&amp;nbsp;&lt;STRONG&gt;01(Numaric) &lt;/STRONG&gt;in DI studio.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Ex: &amp;nbsp;&amp;nbsp;2016- Jan -------&amp;gt; 01&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2016- Feb--------&amp;gt;02&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help me on my request.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 10:20:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Character-to-numeric-convertion/m-p/305325#M8700</guid>
      <dc:creator>chirumalla</dc:creator>
      <dc:date>2016-10-18T10:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Character to numeric convertion</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Character-to-numeric-convertion/m-p/305327#M8701</link>
      <description>&lt;P&gt;Use the input() function, together with an appropriate date informat (see the Base SAS documentation).&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 10:22:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Character-to-numeric-convertion/m-p/305327#M8701</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-10-18T10:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Character to numeric convertion</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Character-to-numeric-convertion/m-p/305328#M8702</link>
      <description>&lt;P&gt;Yes, I have used Input() function but I couldn't able to get exact informat, please help me on informat.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 10:25:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Character-to-numeric-convertion/m-p/305328#M8702</guid>
      <dc:creator>chirumalla</dc:creator>
      <dc:date>2016-10-18T10:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Character to numeric convertion</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Character-to-numeric-convertion/m-p/305330#M8703</link>
      <description>&lt;P&gt;What have you tried?&lt;/P&gt;
&lt;P&gt;And talking about "exact". Thre's a space&amp;nbsp;between the hyphen and the month name. You need to get rid of that first (compress()).&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 10:30:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Character-to-numeric-convertion/m-p/305330#M8703</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-10-18T10:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Character to numeric convertion</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Character-to-numeric-convertion/m-p/305331#M8704</link>
      <description>&lt;P&gt;Their is no space between hypen and month (2016-Jan). I tried most of informats.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 10:33:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Character-to-numeric-convertion/m-p/305331#M8704</guid>
      <dc:creator>chirumalla</dc:creator>
      <dc:date>2016-10-18T10:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Character to numeric convertion</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Character-to-numeric-convertion/m-p/305332#M8705</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
input date_char $;
date = input(scan(date_char,2,'-')!!scan(date_char,1,'-'),anydtdte8.);
format date date9.;
month = month(date);
cards;
2016-Jan
;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;do this in User Written Code&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 10:55:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Character-to-numeric-convertion/m-p/305332#M8705</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-10-18T10:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Character to numeric convertion</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Character-to-numeric-convertion/m-p/305335#M8706</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class="login-bold"&gt;&lt;A id="link_8" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562" target="_self"&gt;KurtBremser&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="login-bold"&gt;Thanks for your help, It's working for me. Great help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 11:41:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Character-to-numeric-convertion/m-p/305335#M8706</guid>
      <dc:creator>chirumalla</dc:creator>
      <dc:date>2016-10-18T11:41:14Z</dc:date>
    </item>
  </channel>
</rss>

