<?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 Invalid argument to function Input in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Invalid-argument-to-function-Input/m-p/497694#M132009</link>
    <description>&lt;P&gt;Appreciate if someone help me to resolve the NOTE in second data step. I'm not receiving any note if month value is 10,11 or 12.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
26         data test;
27         day='1';
28         month='1'; 
29         year=2018;
30         run;

NOTE: The data set WORK.TEST has 1 observations and 3 variables.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      

31         
32         data test1;
33         set test;
34         new_year=put(year,z4.);
2                                                          The SAS System                           07:19 Friday, September 21, 2018

35         day_month_year=catt(day,month,new_year);
36         renewal_date=input(day_month_year,ddmmyy8.);
37         format renewal_date date5.;
38         run;

NOTE: Invalid argument to function INPUT at line 36 column 14.
day=1 month=1 year=2018 new_year=2018 day_month_year=112018 renewal_date=. _ERROR_=1 _N_=1
NOTE: Mathematical operations could not be performed at the following places. The results of the operations have been set to 
      missing values.
      Each place is given by: (Number of times) at (Line):(Column).
      1 at 36:14   
NOTE: There were 1 observations read from the data set WORK.TEST.
NOTE: The data set WORK.TEST1 has 1 observations and 6 variables.&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 21 Sep 2018 06:45:38 GMT</pubDate>
    <dc:creator>Babloo</dc:creator>
    <dc:date>2018-09-21T06:45:38Z</dc:date>
    <item>
      <title>Invalid argument to function Input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invalid-argument-to-function-Input/m-p/497694#M132009</link>
      <description>&lt;P&gt;Appreciate if someone help me to resolve the NOTE in second data step. I'm not receiving any note if month value is 10,11 or 12.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
26         data test;
27         day='1';
28         month='1'; 
29         year=2018;
30         run;

NOTE: The data set WORK.TEST has 1 observations and 3 variables.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      

31         
32         data test1;
33         set test;
34         new_year=put(year,z4.);
2                                                          The SAS System                           07:19 Friday, September 21, 2018

35         day_month_year=catt(day,month,new_year);
36         renewal_date=input(day_month_year,ddmmyy8.);
37         format renewal_date date5.;
38         run;

NOTE: Invalid argument to function INPUT at line 36 column 14.
day=1 month=1 year=2018 new_year=2018 day_month_year=112018 renewal_date=. _ERROR_=1 _N_=1
NOTE: Mathematical operations could not be performed at the following places. The results of the operations have been set to 
      missing values.
      Each place is given by: (Number of times) at (Line):(Column).
      1 at 36:14   
NOTE: There were 1 observations read from the data set WORK.TEST.
NOTE: The data set WORK.TEST1 has 1 observations and 6 variables.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Sep 2018 06:45:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invalid-argument-to-function-Input/m-p/497694#M132009</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-09-21T06:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid argument to function Input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invalid-argument-to-function-Input/m-p/497701#M132010</link>
      <description>&lt;PRE&gt;day_month_year=catt(day,month,new_year);&lt;/PRE&gt;
&lt;P&gt;=&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;day_month_year&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;catt&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;'1'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;'1'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,2018&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/LI-CODE&gt;
&lt;P&gt;This is not a valid ddmmyy8 format.&lt;/P&gt;
&lt;P&gt;If you want a date then use (with numeric values):&lt;/P&gt;
&lt;PRE&gt;data test;
  day=1;
  month=1;
  year=2018;
  date=mdy(month,day,year);
  format date date9.;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 06:50:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invalid-argument-to-function-Input/m-p/497701#M132010</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-21T06:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid argument to function Input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invalid-argument-to-function-Input/m-p/497859#M132121</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Appreciate if someone help me to resolve the NOTE in second data step. I'm not receiving any note if month value is 10,11 or 12.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
26         data test;
27         day='1';
28         month='1'; 
29         year=2018;
30         run;

NOTE: The data set WORK.TEST has 1 observations and 3 variables.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      

31         
32         data test1;
33         set test;
34         new_year=put(year,z4.);
2                                                          The SAS System                           07:19 Friday, September 21, 2018

35         day_month_year=catt(day,month,new_year);
36         renewal_date=input(day_month_year,ddmmyy8.);
37         format renewal_date date5.;
38         run;

NOTE: Invalid argument to function INPUT at line 36 column 14.
day=1 month=1 year=2018 new_year=2018 day_month_year=112018 renewal_date=. _ERROR_=1 _N_=1
NOTE: Mathematical operations could not be performed at the following places. The results of the operations have been set to 
      missing values.
      Each place is given by: (Number of times) at (Line):(Column).
      1 at 36:14   
NOTE: There were 1 observations read from the data set WORK.TEST.
NOTE: The data set WORK.TEST1 has 1 observations and 6 variables.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Did you bother the read the error where it shows &lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;day_month_year&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;112018&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;&amp;nbsp; &lt;FONT color="#000000"&gt;The ddmmyy informat expects the 3rd and 4th values to be a valid month number. 20 is NOT a valid month number. Convert any day, month or year values to numeric &lt;STRONG&gt;separately &lt;/STRONG&gt;and use the MDY function on the numeric values: date = mdy(input(month,best.),input(day,best.), year) since it appears your year might actually be numeric.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 15:10:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invalid-argument-to-function-Input/m-p/497859#M132121</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-09-21T15:10:30Z</dc:date>
    </item>
  </channel>
</rss>

