<?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: Proc SQL - Convert from Char to Num in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Convert-from-Char-to-Num/m-p/440933#M110241</link>
    <description>&lt;P&gt;You use the input function, as you would in any other SAS instance (even though you seem to insist on using SQL, it is still SAS syntax - unless you pass through to a database which is the only place you have to use SQL and that would not use SAS specifics):&lt;/P&gt;
&lt;PRE&gt;proc sql;
  create table work.steps as 
  select car_make,
         car_type,
         input(count,best.) as count
  from work.car_overall;
quit; &lt;/PRE&gt;
&lt;P&gt;Notice also how I use the code window and use formatting to make the code more readable.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2018 16:00:32 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-02-28T16:00:32Z</dc:date>
    <item>
      <title>Proc SQL - Convert from Char to Num</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Convert-from-Char-to-Num/m-p/440931#M110239</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I change my variable "Count" from a Char Variable to a Numeric Variable please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table work.steps as&amp;nbsp;&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;car_make,&lt;/P&gt;&lt;P&gt;car_type,&lt;/P&gt;&lt;P&gt;count&lt;/P&gt;&lt;P&gt;from work.car_overall;&lt;/P&gt;&lt;P&gt;quit;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 15:55:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Convert-from-Char-to-Num/m-p/440931#M110239</guid>
      <dc:creator>KC_16</dc:creator>
      <dc:date>2018-02-28T15:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL - Convert from Char to Num</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Convert-from-Char-to-Num/m-p/440933#M110241</link>
      <description>&lt;P&gt;You use the input function, as you would in any other SAS instance (even though you seem to insist on using SQL, it is still SAS syntax - unless you pass through to a database which is the only place you have to use SQL and that would not use SAS specifics):&lt;/P&gt;
&lt;PRE&gt;proc sql;
  create table work.steps as 
  select car_make,
         car_type,
         input(count,best.) as count
  from work.car_overall;
quit; &lt;/PRE&gt;
&lt;P&gt;Notice also how I use the code window and use formatting to make the code more readable.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 16:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Convert-from-Char-to-Num/m-p/440933#M110241</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-02-28T16:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL - Convert from Char to Num</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Convert-from-Char-to-Num/m-p/480952#M124326</link>
      <description>&lt;P&gt;What preposterously snobbish language.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 21:46:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Convert-from-Char-to-Num/m-p/480952#M124326</guid>
      <dc:creator>nkanney</dc:creator>
      <dc:date>2018-07-24T21:46:37Z</dc:date>
    </item>
  </channel>
</rss>

