<?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: what does the 'input statement specification'? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/what-does-the-input-statement-specification/m-p/746060#M233993</link>
    <description>&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
    <pubDate>Sun, 06 Jun 2021 01:21:29 GMT</pubDate>
    <dc:creator>tianerhu</dc:creator>
    <dc:date>2021-06-06T01:21:29Z</dc:date>
    <item>
      <title>what does the 'input statement specification'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-does-the-input-statement-specification/m-p/746037#M233975</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_0-1622925025478.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60053i4F116FB6EAD29313/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tianerhu_0-1622925025478.png" alt="tianerhu_0-1622925025478.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_1-1622925041345.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60054i80644A9542183AC6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tianerhu_1-1622925041345.png" alt="tianerhu_1-1622925041345.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp; can't make a desicion between choice B and D?&lt;/P&gt;
&lt;P&gt;what does the 'input statement specification' mean?&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 20:32:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-does-the-input-statement-specification/m-p/746037#M233975</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-06-05T20:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: what does the 'input statement specification'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-does-the-input-statement-specification/m-p/746040#M233977</link>
      <description>&lt;P&gt;It does mean that the part of the INPUT statement dealing with variable salary is wrong. But that would prevent the step from running.&lt;/P&gt;
&lt;P&gt;Since salary is expected to be numeric, and the problem happens only once in 20 rows, B is correct.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 21:11:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-does-the-input-statement-specification/m-p/746040#M233977</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-06-05T21:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: what does the 'input statement specification'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-does-the-input-statement-specification/m-p/746041#M233978</link>
      <description>&lt;P&gt;If you look at the fourth line in the messages, you'll see "Salary=." -- when you see a value of ".", that's a representation of a missing &lt;STRONG&gt;numeric&lt;/STRONG&gt; value.&amp;nbsp; Therefore the specification on the Input statement had to be numeric.&amp;nbsp; It might look like the below.&amp;nbsp; Notice how there is a dollar sign after the two Employee fields but not after the Salary.&amp;nbsp; A dollar sign is the input specification for character.&amp;nbsp; If there is no dollar sign, the input specification is for numeric.&amp;nbsp; There are some variations on how an INPUT statement can be coded, but this is basically what INPUT specifications look like.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;INFORMAT Birth_date Date9.;
INPUT
    Employee_ID $
    Employee_Gender $
    Salary
    Birth_date
    ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, the Salary on line 4 is coded as 46#30.&amp;nbsp; That's not typically how a Salary would be coded, and it's not a valid value for a numeric field.&amp;nbsp; That data, 46#30, doesn't work with the numeric input specification.&amp;nbsp; My answer would be "C" that this is the first of potentially many errors, this error occurring in the fourth line of input.&amp;nbsp; Any line of data with a non-numeric value in the Salary position will receive this error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jimbarbour_0-1622927236140.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60055iAB5E1FA391062808/image-size/large?v=v2&amp;amp;px=999" role="button" title="jimbarbour_0-1622927236140.png" alt="jimbarbour_0-1622927236140.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 21:19:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-does-the-input-statement-specification/m-p/746041#M233978</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-06-05T21:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: what does the 'input statement specification'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-does-the-input-statement-specification/m-p/746054#M233987</link>
      <description>&lt;P&gt;The correct answer is B.&lt;BR /&gt;The value of Salary should be a number whereas it has '#' in it.&lt;BR /&gt;Therefore error is triggered at execution time.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 00:41:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-does-the-input-statement-specification/m-p/746054#M233987</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-06-06T00:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: what does the 'input statement specification'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-does-the-input-statement-specification/m-p/746058#M233991</link>
      <description>&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 01:20:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-does-the-input-statement-specification/m-p/746058#M233991</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-06-06T01:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: what does the 'input statement specification'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-does-the-input-statement-specification/m-p/746059#M233992</link>
      <description>&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 01:20:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-does-the-input-statement-specification/m-p/746059#M233992</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-06-06T01:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: what does the 'input statement specification'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-does-the-input-statement-specification/m-p/746060#M233993</link>
      <description>&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 01:21:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-does-the-input-statement-specification/m-p/746060#M233993</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-06-06T01:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: what does the 'input statement specification'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-does-the-input-statement-specification/m-p/746061#M233994</link>
      <description>&lt;P&gt;This is a poor question.&amp;nbsp; First the text is presented in proportional font and so the columns of the problem data is impossible to determine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Either B or D could be the real cause of the error.&amp;nbsp; &amp;nbsp;Is the data wrong or did the programmer try to read it in the wrong way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Common sense says that B is more likely the real problem.&amp;nbsp; Why would you want to define SALARY as a character string?&amp;nbsp; And if you did why would it include a # ?&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 01:37:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-does-the-input-statement-specification/m-p/746061#M233994</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-06-06T01:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: what does the 'input statement specification'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-does-the-input-statement-specification/m-p/746091#M234014</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Common sense says that B is more likely the real problem.&amp;nbsp; Why would you want to define SALARY as a character string?&amp;nbsp; And if you did why would it include a # ?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Salary as character if it contains values like "way overpaid" &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt; .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or poor attempt at humor aside, that the Salary field could actually be some sort of accounting code. US federal government employees for example GS14 Step9 placed a pretty specific, for a given year, salary value IF you have the look up table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My $0.02.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 14:00:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-does-the-input-statement-specification/m-p/746091#M234014</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-06-06T14:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: what does the 'input statement specification'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-does-the-input-statement-specification/m-p/746097#M234016</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;This is a poor question.&amp;nbsp; First the text is presented in proportional font and so the columns of the problem data is impossible to determine.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Of all the very smart things &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt; has said over the years, I think this is my favorite.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 15:44:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-does-the-input-statement-specification/m-p/746097#M234016</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-06T15:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: what does the 'input statement specification'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-does-the-input-statement-specification/m-p/746098#M234017</link>
      <description>&lt;P&gt;How can it be A? It can't be A, there are no ERRORs in the LOG, there are only NOTEs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can it be B? It can't be B, there are no ERRORs in the LOG, there are only NOTEs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can it be C? It can't, because after this NOTE about invalid data for Salary in line 4, the log continues on and produces no more invalid data messages, and then it ends by saying the data set WORK.EMPLOYEES has 20 observations and 4 variables. It's done, it hasn't found additional invalid data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, it must be D. QED! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; (Except for that part about the INPUT statement is in error, as someone pointed out above it could be there is a typographical error in the value of Salary, and so just because we have eliminated A B and C, that doesn't mean D is correct, it may not be an error in the INPUT statement.)&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 15:51:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-does-the-input-statement-specification/m-p/746098#M234017</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-06T15:51:42Z</dc:date>
    </item>
  </channel>
</rss>

