<?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: how to make the type of all the variables same? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-the-type-of-all-the-variables-same/m-p/585732#M167111</link>
    <description>&lt;P&gt;Ideally, you do that when you import the data into SAS by making sure that the values are read correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How did you receive the data, and how did you import it?&lt;/P&gt;</description>
    <pubDate>Tue, 03 Sep 2019 09:22:54 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-09-03T09:22:54Z</dc:date>
    <item>
      <title>how to make the type of all the variables same?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-the-type-of-all-the-variables-same/m-p/585730#M167109</link>
      <description>&lt;P&gt;dear all&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have 40 different variables in my dataset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;some of the variables are in character form and some are numeric.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to convert all tthe variables into numeric form.&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to do it in SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 09:20:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-make-the-type-of-all-the-variables-same/m-p/585730#M167109</guid>
      <dc:creator>srikanthyadav44</dc:creator>
      <dc:date>2019-09-03T09:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to make the type of all the variables same?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-the-type-of-all-the-variables-same/m-p/585731#M167110</link>
      <description>&lt;P&gt;Read this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/40/700.html" target="_self"&gt;Sample&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;40700:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;Convert all character variables to numeric and use the same variable names in the output data set&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 09:22:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-make-the-type-of-all-the-variables-same/m-p/585731#M167110</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-09-03T09:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to make the type of all the variables same?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-the-type-of-all-the-variables-same/m-p/585732#M167111</link>
      <description>&lt;P&gt;Ideally, you do that when you import the data into SAS by making sure that the values are read correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How did you receive the data, and how did you import it?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 09:22:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-make-the-type-of-all-the-variables-same/m-p/585732#M167111</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-09-03T09:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to make the type of all the variables same?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-the-type-of-all-the-variables-same/m-p/585754#M167124</link>
      <description>&lt;P&gt;dear&amp;nbsp;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304" target="_self"&gt;&lt;SPAN class="login-bold"&gt;draycut&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;i tried the following code from the link suggested by you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it is not working.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data test2;                                               
   set test;                                                 
   array ch(*) $ &amp;amp;c_list;                                    
   array nu(*) &amp;amp;n_list;                                      
   do i = 1 to dim(ch);                                      
      nu(i)=input(ch(i),8.);                                  
   end;                                                      
   drop i &amp;amp;c_list;                                           
   rename &amp;amp;renam_list;                                                                                      
run;   &lt;BR /&gt;&lt;BR /&gt;there&amp;nbsp;are&amp;nbsp;some&amp;nbsp;other&amp;nbsp;codes&amp;nbsp;also.&amp;nbsp;but&amp;nbsp;i&amp;nbsp;could&amp;nbsp;not&amp;nbsp;understand&amp;nbsp;them.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;i am attaching the&amp;nbsp;error&amp;nbsp;displayed&amp;nbsp;by SAS&lt;BR /&gt;&lt;BR /&gt;please help me solving the problem&lt;BR /&gt;&lt;BR /&gt;thanks in advance&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 10:57:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-make-the-type-of-all-the-variables-same/m-p/585754#M167124</guid>
      <dc:creator>srikanthyadav44</dc:creator>
      <dc:date>2019-09-03T10:57:02Z</dc:date>
    </item>
  </channel>
</rss>

