<?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 Statements in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Input-Statements/m-p/68757#M14902</link>
    <description>The missing . on the FORMAT turn it the input to "column input" as if you said.&lt;BR /&gt;
&lt;BR /&gt;
input state $ 2-2;</description>
    <pubDate>Tue, 16 Mar 2010 17:00:19 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2010-03-16T17:00:19Z</dc:date>
    <item>
      <title>Input Statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Input-Statements/m-p/68756#M14901</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I ran the following program, which has a missing period (.) at the last informat for State:&lt;BR /&gt;
&lt;BR /&gt;
data work.a;&lt;BR /&gt;
infile 'test.txt';&lt;BR /&gt;
input @2 populateion comma9.&lt;BR /&gt;
        @12 Rank 1.&lt;BR /&gt;
        @14 CITY $12.&lt;BR /&gt;
        @27 STATE $2   ;&lt;BR /&gt;
   &lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
The program ran and the result is as follow:&lt;BR /&gt;
&lt;BR /&gt;
Obs    populateion    Rank    CITY           STATE&lt;BR /&gt;
&lt;BR /&gt;
  1       8143197        1          New York         8&lt;BR /&gt;
  2       3844829        2         Los Angeles      3&lt;BR /&gt;
  3       2842518        3           Chicago          2&lt;BR /&gt;
&lt;BR /&gt;
May I know how did SAS derive the values 8, 3, 2 for the colum state?</description>
      <pubDate>Tue, 16 Mar 2010 16:26:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Input-Statements/m-p/68756#M14901</guid>
      <dc:creator>huikeng_sas</dc:creator>
      <dc:date>2010-03-16T16:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Input Statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Input-Statements/m-p/68757#M14902</link>
      <description>The missing . on the FORMAT turn it the input to "column input" as if you said.&lt;BR /&gt;
&lt;BR /&gt;
input state $ 2-2;</description>
      <pubDate>Tue, 16 Mar 2010 17:00:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Input-Statements/m-p/68757#M14902</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2010-03-16T17:00:19Z</dc:date>
    </item>
  </channel>
</rss>

