<?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: INPUT function requires a character argument in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/INPUT-function-requires-a-character-argument/m-p/376452#M90364</link>
    <description>&lt;P&gt;Since CLAIM_NO seems to be numeric in both tables you are using, simply dropping the INPUT function part should do the job.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jul 2017 10:19:26 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2017-07-17T10:19:26Z</dc:date>
    <item>
      <title>INPUT function requires a character argument</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INPUT-function-requires-a-character-argument/m-p/376449#M90363</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please help&amp;nbsp;me. I am trying to run the following query:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc SQL;&lt;BR /&gt;Create table Temp as&lt;BR /&gt;Select *&lt;BR /&gt;from MM.mom_Claims&lt;BR /&gt;Where CLAIM_NO in (Select input(CLAIM_NO,15.) from PMB_ICD_Codes);&lt;/P&gt;&lt;P&gt;Quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I am getting the following error:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;8157 Proc SQL;&lt;BR /&gt;8158 Create table Temp as&lt;BR /&gt;8159 Select *&lt;BR /&gt;8160 from MM.mom_Claims&lt;BR /&gt;8161 Where CLAIM_NO in (Select input(CLAIM_NO,15.) from PMB_ICD_Codes);&lt;BR /&gt;ERROR: INPUT function requires a character argument.&lt;BR /&gt;ERROR: INPUT function requires a character argument.&lt;BR /&gt;ERROR: Expression using IN has components that are of different data types.&lt;BR /&gt;NOTE: The IN referred to may have been transformed from an OR to an IN at some point during PROC SQL WHERE clause&lt;BR /&gt;optimization.&lt;BR /&gt;8162&lt;BR /&gt;8163 Quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: In both the PMB_ICD_Code and mom_Claims file the CLAIM_NO field has the following attributes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lenght: 8&lt;/P&gt;&lt;P&gt;Format: 10.&lt;/P&gt;&lt;P&gt;Informat: 10.&lt;/P&gt;&lt;P&gt;Type: Numeric&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure how to rewrite this as a I am very new to SAS.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 10:15:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INPUT-function-requires-a-character-argument/m-p/376449#M90363</guid>
      <dc:creator>Hfeez123</dc:creator>
      <dc:date>2017-07-17T10:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: INPUT function requires a character argument</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INPUT-function-requires-a-character-argument/m-p/376452#M90364</link>
      <description>&lt;P&gt;Since CLAIM_NO seems to be numeric in both tables you are using, simply dropping the INPUT function part should do the job.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 10:19:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INPUT-function-requires-a-character-argument/m-p/376452#M90364</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-07-17T10:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: INPUT function requires a character argument</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INPUT-function-requires-a-character-argument/m-p/376453#M90365</link>
      <description>&lt;P&gt;Since CLAIM_NO is already numeric, the input function is not needed.&lt;/P&gt;
&lt;P&gt;Do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table temp as
select *
from mm.mom_claims
where CLAIM_NO in (select CLAIM_NO from PMB_ICD_Codes);
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Jul 2017 10:20:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INPUT-function-requires-a-character-argument/m-p/376453#M90365</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-17T10:20:08Z</dc:date>
    </item>
  </channel>
</rss>

