<?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: From Numeric to Character in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/From-Numeric-to-Character/m-p/514908#M2835</link>
    <description>It should be:  rand2 = input(rand, date9.); &lt;BR /&gt;&lt;BR /&gt;Note that you need to name the variables different, you cannot use the same name AND if the data is wrong for some reason you'll still get that error, ie 31Sep2018 will generate an error.</description>
    <pubDate>Tue, 20 Nov 2018 19:44:45 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-11-20T19:44:45Z</dc:date>
    <item>
      <title>From Numeric to Character</title>
      <link>https://communities.sas.com/t5/New-SAS-User/From-Numeric-to-Character/m-p/514907#M2834</link>
      <description>&lt;P&gt;Hello, there is a problem with converting variables.&lt;/P&gt;&lt;P&gt;I got date variable "rand1" that is character and&amp;nbsp;has date format(ddyymm10.) and represents as 10JUN2014(example)&lt;/P&gt;&lt;P&gt;I need to create new variable "rand2" and make a numeric representation of "rand1" ex -&amp;nbsp;&lt;SPAN&gt;14686(i think it's a days from 1 Jan 1960 date9. type). So, the simple code as&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;rand2 = input(rand2, 8. or date9. or whatever) makes this error&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NOTE: Invalid argument to function INPUT&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Why? I don't know. There is no more errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 19:40:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/From-Numeric-to-Character/m-p/514907#M2834</guid>
      <dc:creator>IGK22</dc:creator>
      <dc:date>2018-11-20T19:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: From Numeric to Character</title>
      <link>https://communities.sas.com/t5/New-SAS-User/From-Numeric-to-Character/m-p/514908#M2835</link>
      <description>It should be:  rand2 = input(rand, date9.); &lt;BR /&gt;&lt;BR /&gt;Note that you need to name the variables different, you cannot use the same name AND if the data is wrong for some reason you'll still get that error, ie 31Sep2018 will generate an error.</description>
      <pubDate>Tue, 20 Nov 2018 19:44:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/From-Numeric-to-Character/m-p/514908#M2835</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-20T19:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: From Numeric to Character</title>
      <link>https://communities.sas.com/t5/New-SAS-User/From-Numeric-to-Character/m-p/514909#M2836</link>
      <description>&lt;P&gt;Your subject lines says numeric to character but you seem to be doing character to numeric with input reading non standard data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
char='10JUN2014';
num_date=input(char,date9.);
*format num_date date9.;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 19:45:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/From-Numeric-to-Character/m-p/514909#M2836</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-11-20T19:45:30Z</dc:date>
    </item>
  </channel>
</rss>

