<?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 Reading raw files in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252479#M47934</link>
    <description>&lt;P&gt;Flat file structure is as below&lt;BR /&gt;1----5----10&lt;BR /&gt;dan 23 45&lt;BR /&gt;bob 44 50&lt;BR /&gt;sue 30 80&lt;BR /&gt;mam 40 50&lt;BR /&gt;The following code is submitted.&lt;/P&gt;&lt;P&gt;data temp;&lt;BR /&gt;infile ‘file specification’;&lt;BR /&gt;input x $ 1-3;&lt;BR /&gt;if x='sue' then input age 5-6;&lt;BR /&gt;else input height 8-9;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;what would be the value of variable AGE in the dataset TEMP when&lt;BR /&gt;variable X has the value ‘Sue’?&lt;BR /&gt;a) 30&lt;BR /&gt;b) 44&lt;BR /&gt;c) 40&lt;BR /&gt;d) 55&lt;BR /&gt;Ans: c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHY c?&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Feb 2016 18:50:55 GMT</pubDate>
    <dc:creator>Bulleride</dc:creator>
    <dc:date>2016-02-25T18:50:55Z</dc:date>
    <item>
      <title>Reading raw files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252479#M47934</link>
      <description>&lt;P&gt;Flat file structure is as below&lt;BR /&gt;1----5----10&lt;BR /&gt;dan 23 45&lt;BR /&gt;bob 44 50&lt;BR /&gt;sue 30 80&lt;BR /&gt;mam 40 50&lt;BR /&gt;The following code is submitted.&lt;/P&gt;&lt;P&gt;data temp;&lt;BR /&gt;infile ‘file specification’;&lt;BR /&gt;input x $ 1-3;&lt;BR /&gt;if x='sue' then input age 5-6;&lt;BR /&gt;else input height 8-9;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;what would be the value of variable AGE in the dataset TEMP when&lt;BR /&gt;variable X has the value ‘Sue’?&lt;BR /&gt;a) 30&lt;BR /&gt;b) 44&lt;BR /&gt;c) 40&lt;BR /&gt;d) 55&lt;BR /&gt;Ans: c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHY c?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 18:50:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252479#M47934</guid>
      <dc:creator>Bulleride</dc:creator>
      <dc:date>2016-02-25T18:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Reading raw files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252504#M47955</link>
      <description>&lt;P&gt;A program is not obliged to read in all the data on every line.&amp;nbsp; You can pick and choose what you want to read and what you want to skip.&amp;nbsp; So when the INPUT statement ends, that's the signal to SAS that you're done with that line of data and don't want to read any more items from it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this program, then, the subsequent INPUT statement is reading from the next line of data.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 19:27:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252504#M47955</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-02-25T19:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reading raw files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252613#M47991</link>
      <description>&lt;P&gt;&lt;SPAN&gt;input x $ 1-3; &amp;nbsp; will skip to next line .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;input x $ 1-3 @; &amp;nbsp;will NOT skip to next line.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 01:50:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252613#M47991</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-02-26T01:50:15Z</dc:date>
    </item>
  </channel>
</rss>

