<?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: Reading raw data from a text file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-raw-data-from-a-text-file/m-p/474990#M122121</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; In addition to Tom's suggestion, if you took a slightly different approach, using simple list input (since the values are delimited by spaces) you don't need a conditional INPUT statement.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="revise_datalines.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21543iCFFB70ACD926DD01/image-size/large?v=v2&amp;amp;px=999" role="button" title="revise_datalines.png" alt="revise_datalines.png" /&gt;&lt;/span&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Just another possible approach.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jul 2018 17:19:46 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2018-07-02T17:19:46Z</dc:date>
    <item>
      <title>Reading raw data from a text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-raw-data-from-a-text-file/m-p/474970#M122111</link>
      <description>&lt;P&gt;Ruth 39 11&lt;/P&gt;&lt;P&gt;jose&amp;nbsp; 32 22&lt;/P&gt;&lt;P&gt;sue&amp;nbsp; &amp;nbsp;30 33&lt;/P&gt;&lt;P&gt;john&amp;nbsp; 40 44&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;infile&amp;nbsp;'employee';&lt;/P&gt;&lt;P&gt;input emp_name $1-4 ;&lt;/P&gt;&lt;P&gt;if emp_name = 'sue' then input age 7-8;&lt;/P&gt;&lt;P&gt;else input idnum 10-11;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you plz explain why i am getting 40 as value for age when name of the employee is 'sue' .&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 16:28:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-raw-data-from-a-text-file/m-p/474970#M122111</guid>
      <dc:creator>sanyam13</dc:creator>
      <dc:date>2018-07-02T16:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reading raw data from a text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-raw-data-from-a-text-file/m-p/474981#M122117</link>
      <description>&lt;P&gt;The first INPUT statement reads one line. The second INPUT statement will read from the next line.&lt;/P&gt;
&lt;P&gt;If you want to continue reading from the same line you need to add a trailing&amp;nbsp;@ sign to the first INPUT statement so that SAS will stay on the current line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 16:49:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-raw-data-from-a-text-file/m-p/474981#M122117</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-07-02T16:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reading raw data from a text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-raw-data-from-a-text-file/m-p/474990#M122121</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; In addition to Tom's suggestion, if you took a slightly different approach, using simple list input (since the values are delimited by spaces) you don't need a conditional INPUT statement.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="revise_datalines.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21543iCFFB70ACD926DD01/image-size/large?v=v2&amp;amp;px=999" role="button" title="revise_datalines.png" alt="revise_datalines.png" /&gt;&lt;/span&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Just another possible approach.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 17:19:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-raw-data-from-a-text-file/m-p/474990#M122121</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-07-02T17:19:46Z</dc:date>
    </item>
  </channel>
</rss>

