<?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 PROC SQL CAST in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-CAST/m-p/326355#M62310</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this kind of proc sql&lt;/P&gt;&lt;PRE&gt;PROC SQL;
CREATE TABLE B1 AS
SELECT A AS TYPE,
B AS AMOUNT
FROM WORK.A1;
QUIT;
RUN;&lt;/PRE&gt;&lt;P&gt;I would like to cast B in integer. For now it's a varchar. And I would like to do it inside this proc sql if possible. Is it possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for answers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2017 17:25:17 GMT</pubDate>
    <dc:creator>fabdu92</dc:creator>
    <dc:date>2017-01-20T17:25:17Z</dc:date>
    <item>
      <title>PROC SQL CAST</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-CAST/m-p/326355#M62310</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this kind of proc sql&lt;/P&gt;&lt;PRE&gt;PROC SQL;
CREATE TABLE B1 AS
SELECT A AS TYPE,
B AS AMOUNT
FROM WORK.A1;
QUIT;
RUN;&lt;/PRE&gt;&lt;P&gt;I would like to cast B in integer. For now it's a varchar. And I would like to do it inside this proc sql if possible. Is it possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for answers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 17:25:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-CAST/m-p/326355#M62310</guid>
      <dc:creator>fabdu92</dc:creator>
      <dc:date>2017-01-20T17:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL CAST</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-CAST/m-p/326359#M62311</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input(B,best.) as amount&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Jan 2017 17:32:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-CAST/m-p/326359#M62311</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-20T17:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL CAST</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-CAST/m-p/326360#M62312</link>
      <description>&lt;P&gt;Great,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you Kurt!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 17:35:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-CAST/m-p/326360#M62312</guid>
      <dc:creator>fabdu92</dc:creator>
      <dc:date>2017-01-20T17:35:28Z</dc:date>
    </item>
  </channel>
</rss>

