<?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: Invalid argument to function INPUT in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Invalid-argument-to-function-INPUT/m-p/243281#M15067</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/40773"&gt;@Bal23&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thank you. How to find how much missing data it generates?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The number of records with the error message are determined by the SAS system option Errors. You can change that by using code:&lt;/P&gt;
&lt;P&gt;options errors=50;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The default is usually 20. Look at the results of the first 20 errors and see if you can identify the pattern of values that are causing the error.&lt;/P&gt;
&lt;P&gt;Is the variable VAR1 text or numeric? Are there any characters in the first 3 of Var1 that are not numerals or decimal?&lt;/P&gt;
&lt;P&gt;You will get that error if VAR1 has a value like "1 3245" or 1_234&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jan 2016 18:03:22 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-01-13T18:03:22Z</dc:date>
    <item>
      <title>Invalid argument to function INPUT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Invalid-argument-to-function-INPUT/m-p/243254#M15062</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw a note, "Invalid argument to function INPUT"&amp;nbsp; on the log based on my sas code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var1=input(substr(var2,1,3), 8.);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It shows that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mathematical operations could not be performed at the following places. The results of the&lt;BR /&gt;operations have been set to missing values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would anybody explain how it will affect my results? How to fix it?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 16:51:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Invalid-argument-to-function-INPUT/m-p/243254#M15062</guid>
      <dc:creator>Bal23</dc:creator>
      <dc:date>2016-01-13T16:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid argument to function INPUT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Invalid-argument-to-function-INPUT/m-p/243257#M15063</link>
      <description>&lt;P&gt;The note&amp;nbsp;will also give you the record number of where the issue occurred so you can check your actual data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It means that var1 will be set to missing when the substr() function does not return a valid value. Check what your substr() is returning and decide if you need to deal with those cases or if setting it to missing is fine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A general rule is to not allow notes&amp;nbsp;like that in your log though, because it makes error checking later on difficult.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 16:57:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Invalid-argument-to-function-INPUT/m-p/243257#M15063</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-13T16:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid argument to function INPUT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Invalid-argument-to-function-INPUT/m-p/243261#M15064</link>
      <description>&lt;P&gt;Thank you. How to find how much missing data it generates?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 17:09:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Invalid-argument-to-function-INPUT/m-p/243261#M15064</guid>
      <dc:creator>Bal23</dc:creator>
      <dc:date>2016-01-13T17:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid argument to function INPUT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Invalid-argument-to-function-INPUT/m-p/243262#M15065</link>
      <description>&lt;P&gt;would you please let me know how to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Check what my substr() is returning" ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 17:11:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Invalid-argument-to-function-INPUT/m-p/243262#M15065</guid>
      <dc:creator>Bal23</dc:creator>
      <dc:date>2016-01-13T17:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid argument to function INPUT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Invalid-argument-to-function-INPUT/m-p/243278#M15066</link>
      <description>&lt;P&gt;You have another post on this:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/substract-input-etc/m-p/243273" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/substract-input-etc/m-p/243273&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 17:59:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Invalid-argument-to-function-INPUT/m-p/243278#M15066</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-01-13T17:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid argument to function INPUT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Invalid-argument-to-function-INPUT/m-p/243281#M15067</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/40773"&gt;@Bal23&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thank you. How to find how much missing data it generates?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The number of records with the error message are determined by the SAS system option Errors. You can change that by using code:&lt;/P&gt;
&lt;P&gt;options errors=50;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The default is usually 20. Look at the results of the first 20 errors and see if you can identify the pattern of values that are causing the error.&lt;/P&gt;
&lt;P&gt;Is the variable VAR1 text or numeric? Are there any characters in the first 3 of Var1 that are not numerals or decimal?&lt;/P&gt;
&lt;P&gt;You will get that error if VAR1 has a value like "1 3245" or 1_234&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 18:03:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Invalid-argument-to-function-INPUT/m-p/243281#M15067</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-01-13T18:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid argument to function INPUT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Invalid-argument-to-function-INPUT/m-p/243293#M15068</link>
      <description>&lt;P&gt;Create a new variable that is only the substr function, what you're using in the input() function. Then run a proc freq on that. Consider what the input() function is expecting and visually examining your data should give you a clear view of what's causing the issue.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data check;
set have;
var_check=substr(var, 1, 3);
run;

proc freq data=check;
table var_check;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 18:42:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Invalid-argument-to-function-INPUT/m-p/243293#M15068</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-13T18:42:29Z</dc:date>
    </item>
  </channel>
</rss>

