<?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 statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/input-statement/m-p/454865#M114987</link>
    <description>&lt;P&gt;Did you properly account for the two words in the second data set with the double space?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you post&amp;nbsp;your code in the HTML editor vs a code box there's no way to verify that, so you need to ensure it is in SAS or the text file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202656"&gt;@elsalam&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;What is the difference between these two txt file?&amp;nbsp; I am unable to read the second one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They seems to have the same free style format and embedded blank.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) data file&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my code:&amp;nbsp; I am able to run this one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data shortnamesds;&lt;/P&gt;
&lt;P&gt;infile ' /home/coccus030/sasuser.v94/nfldata2.txt' firstobs=2;&lt;BR /&gt;*/ &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/162406"&gt;@20&lt;/a&gt; to indicate SAS to read at 20&amp;nbsp; city and year are too close to each other;&lt;BR /&gt;input City &amp;amp; $16. &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/162406"&gt;@20&lt;/a&gt; Year Team $;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;----+----1----+----2----+----3&lt;BR /&gt;Baltimore 2012 Ravens&lt;BR /&gt;Cincinnati 2012 Bengals&lt;BR /&gt;Cleveland 2012 Browns&lt;BR /&gt;Pittsburgh 2012 Steelers&lt;BR /&gt;Chicago 2012 Bears&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) data file&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bellfort Yes No Yes Yes Yes Yes Yes Yes yes&lt;BR /&gt;North Carolina Yes No Yes Yes Yes Yes Yes Yes yes&lt;BR /&gt;South Raleigh Yes No Yes Yes Yes Yes Yes Yes yes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code:&amp;nbsp; Unable to run&lt;/P&gt;
&lt;P&gt;data answer;&lt;BR /&gt;infile '/home/coccus030/sasuser.v94/audit.txt';&lt;/P&gt;
&lt;P&gt;input State &amp;amp; $16. &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/153152"&gt;@17&lt;/a&gt; Q1 $ Q2 $ Q3 $ Q4 $ Q5 $ Q6 $ Q7 $ Q8 $ Q9 $;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thx&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Apr 2018 17:31:49 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-04-17T17:31:49Z</dc:date>
    <item>
      <title>input statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/input-statement/m-p/454864#M114986</link>
      <description>&lt;P&gt;What is the difference between these two txt file?&amp;nbsp; I am unable to read the second one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They seems to have the same free style format and embedded blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) data file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my code:&amp;nbsp; I am able to run this one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data shortnamesds;&lt;/P&gt;&lt;P&gt;infile ' /home/coccus030/sasuser.v94/nfldata2.txt' firstobs=2;&lt;BR /&gt;*/ &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/162406"&gt;@20&lt;/a&gt; to indicate SAS to read at 20&amp;nbsp; city and year are too close to each other;&lt;BR /&gt;input City &amp;amp; $16. &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/162406"&gt;@20&lt;/a&gt; Year Team $;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;----+----1----+----2----+----3&lt;BR /&gt;Baltimore 2012 Ravens&lt;BR /&gt;Cincinnati 2012 Bengals&lt;BR /&gt;Cleveland 2012 Browns&lt;BR /&gt;Pittsburgh 2012 Steelers&lt;BR /&gt;Chicago 2012 Bears&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) data file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bellfort Yes No Yes Yes Yes Yes Yes Yes yes&lt;BR /&gt;North Carolina Yes No Yes Yes Yes Yes Yes Yes yes&lt;BR /&gt;South Raleigh Yes No Yes Yes Yes Yes Yes Yes yes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code:&amp;nbsp; Unable to run&lt;/P&gt;&lt;P&gt;data answer;&lt;BR /&gt;infile '/home/coccus030/sasuser.v94/audit.txt';&lt;/P&gt;&lt;P&gt;input State &amp;amp; $16. &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/153152"&gt;@17&lt;/a&gt; Q1 $ Q2 $ Q3 $ Q4 $ Q5 $ Q6 $ Q7 $ Q8 $ Q9 $;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 17:28:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/input-statement/m-p/454864#M114986</guid>
      <dc:creator>elsalam</dc:creator>
      <dc:date>2018-04-17T17:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: input statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/input-statement/m-p/454865#M114987</link>
      <description>&lt;P&gt;Did you properly account for the two words in the second data set with the double space?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you post&amp;nbsp;your code in the HTML editor vs a code box there's no way to verify that, so you need to ensure it is in SAS or the text file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202656"&gt;@elsalam&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;What is the difference between these two txt file?&amp;nbsp; I am unable to read the second one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They seems to have the same free style format and embedded blank.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) data file&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my code:&amp;nbsp; I am able to run this one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data shortnamesds;&lt;/P&gt;
&lt;P&gt;infile ' /home/coccus030/sasuser.v94/nfldata2.txt' firstobs=2;&lt;BR /&gt;*/ &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/162406"&gt;@20&lt;/a&gt; to indicate SAS to read at 20&amp;nbsp; city and year are too close to each other;&lt;BR /&gt;input City &amp;amp; $16. &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/162406"&gt;@20&lt;/a&gt; Year Team $;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;----+----1----+----2----+----3&lt;BR /&gt;Baltimore 2012 Ravens&lt;BR /&gt;Cincinnati 2012 Bengals&lt;BR /&gt;Cleveland 2012 Browns&lt;BR /&gt;Pittsburgh 2012 Steelers&lt;BR /&gt;Chicago 2012 Bears&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) data file&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bellfort Yes No Yes Yes Yes Yes Yes Yes yes&lt;BR /&gt;North Carolina Yes No Yes Yes Yes Yes Yes Yes yes&lt;BR /&gt;South Raleigh Yes No Yes Yes Yes Yes Yes Yes yes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code:&amp;nbsp; Unable to run&lt;/P&gt;
&lt;P&gt;data answer;&lt;BR /&gt;infile '/home/coccus030/sasuser.v94/audit.txt';&lt;/P&gt;
&lt;P&gt;input State &amp;amp; $16. &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/153152"&gt;@17&lt;/a&gt; Q1 $ Q2 $ Q3 $ Q4 $ Q5 $ Q6 $ Q7 $ Q8 $ Q9 $;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thx&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 17:31:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/input-statement/m-p/454865#M114987</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-17T17:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: input statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/input-statement/m-p/454875#M114994</link>
      <description>&lt;P&gt;I was able to read the data but not at the right position.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See attached.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 17:56:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/input-statement/m-p/454875#M114994</guid>
      <dc:creator>elsalam</dc:creator>
      <dc:date>2018-04-17T17:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: input statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/input-statement/m-p/454892#M115005</link>
      <description>&lt;P&gt;You are using &amp;amp; within the INPUT statement, without understanding what it means.&amp;nbsp; Take a look, this should clear it up:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=n0lrz3gb7m9e4rn137op544ddg0v.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=n0lrz3gb7m9e4rn137op544ddg0v.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 18:30:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/input-statement/m-p/454892#M115005</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-04-17T18:30:16Z</dc:date>
    </item>
  </channel>
</rss>

