<?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 files in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252491#M47944</link>
    <description>&lt;P&gt;'40' is one line below Sue's line, so&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if employee_name = 'Sue' then input age 7-8;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;will move down one line, where 'John' sits, to pick up '40'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Feb 2016 19:09:54 GMT</pubDate>
    <dc:creator>Haikuo</dc:creator>
    <dc:date>2016-02-25T19:09:54Z</dc:date>
    <item>
      <title>Reading raw files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252465#M47924</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Why and how does this code proceed?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QUESTION&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;The contents of the raw data file EMPLOYEE are listed below:&lt;BR /&gt;----|----10---|----20---|----30&lt;BR /&gt;Ruth 39 11&lt;BR /&gt;Jose 32 22&lt;BR /&gt;Sue 30 33&lt;BR /&gt;John 40 44&lt;BR /&gt;The following SAS program is submitted:&lt;BR /&gt;data test;&lt;BR /&gt;in file' employee';&lt;BR /&gt;input employee_ name $ 1-4;&lt;BR /&gt;if employee_ name = 'Sue' then input age 7-8;&lt;BR /&gt;else input idnum 10-11;&lt;BR /&gt;run;&lt;BR /&gt;Which one of the following values does the variable AGE contain when the name of&lt;BR /&gt;the employee is "Sue"?&lt;BR /&gt;&lt;BR /&gt;A. 30&lt;BR /&gt;B. 33&lt;BR /&gt;C. 40&lt;BR /&gt;D. . (missing numeric value)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ans –C&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 18:17:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252465#M47924</guid>
      <dc:creator>Bulleride</dc:creator>
      <dc:date>2016-02-25T18:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Reading raw files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252474#M47930</link>
      <description>&lt;P&gt;This one is straightforward, without line holder @, as&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input employee_ name $ 1-4 @;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The 'input' statement will move down to the next line of raw data. That is why you get '40'. With '@' in place, you get&amp;nbsp;to stay on the same line, hence to get&amp;nbsp;'30'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 18:37:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252474#M47930</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2016-02-25T18:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reading raw files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252487#M47940</link>
      <description>Could you please explain what happens here as there is no @, and hence it would move to the next line. But how does it pick the value 40 then?&lt;BR /&gt;Please elaborate this processing a bit. Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Thu, 25 Feb 2016 19:04:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252487#M47940</guid>
      <dc:creator>Bulleride</dc:creator>
      <dc:date>2016-02-25T19:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reading raw files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252491#M47944</link>
      <description>&lt;P&gt;'40' is one line below Sue's line, so&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if employee_name = 'Sue' then input age 7-8;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;will move down one line, where 'John' sits, to pick up '40'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 19:09:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252491#M47944</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2016-02-25T19:09:54Z</dc:date>
    </item>
  </channel>
</rss>

