<?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 file using double trailing @@ in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-Raw-data-file-using-double-trailing/m-p/288698#M59555</link>
    <description>&lt;P&gt;There is a default option for infile, FLOWOVER. If the current input statement is trying to read more variables than are currently available then it continues on the next line which generates the warning. The note is basically to let you know &lt;STRONG&gt;something&lt;/STRONG&gt; may be going on in your data you possibly&amp;nbsp;didn't expect.&lt;/P&gt;
&lt;P&gt;So with two variables on the input coupled with trailing @@ the input reads the first two values, then the nex two etc. When it gets to the end of the second line there is only one value to read so it is read and then the advance to the next line. And continues to the end of the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Aug 2016 22:50:08 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-08-01T22:50:08Z</dc:date>
    <item>
      <title>Reading Raw data file using double trailing @@</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Raw-data-file-using-double-trailing/m-p/288685#M59551</link>
      <description>&lt;P&gt;I have a raw data file charity.dat which I have attached with this question. This file contains data about donations made. It contains a charity ID and amount. Following is the code which i have wrote to read the data.&lt;/P&gt;&lt;P&gt;data donate07;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;length ID $4.;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;infile 'E:\SAS data\Data\base data set\lwprg2\charity.dat';&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;input ID $ Amount @@;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;run;&lt;/P&gt;&lt;P&gt;In the raw data file you can see that the amount 875 is at the starting of the third line. My question here is when during execution line pointer reaches the end of the second data line it wont be able to find amount for that corresponding charity id, therefore in output data set the value of amount there should be &amp;nbsp;a period,since according to my understanding&amp;nbsp;@@ will block the input buffer until the line pointer reaches end of the dataline currently being read. but in output I can see that the data was read correctly and in logs i can see&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE: SAS went to a new line when INPUT statement reached past the end of a line.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can anybody please help me in understanding this concept.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12811i865F3C9E79F39C71/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="charity.jpg" title="charity.jpg" /&gt;</description>
      <pubDate>Mon, 01 Aug 2016 18:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Raw-data-file-using-double-trailing/m-p/288685#M59551</guid>
      <dc:creator>ashish_197</dc:creator>
      <dc:date>2016-08-01T18:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Raw data file using double trailing @@</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Raw-data-file-using-double-trailing/m-p/288698#M59555</link>
      <description>&lt;P&gt;There is a default option for infile, FLOWOVER. If the current input statement is trying to read more variables than are currently available then it continues on the next line which generates the warning. The note is basically to let you know &lt;STRONG&gt;something&lt;/STRONG&gt; may be going on in your data you possibly&amp;nbsp;didn't expect.&lt;/P&gt;
&lt;P&gt;So with two variables on the input coupled with trailing @@ the input reads the first two values, then the nex two etc. When it gets to the end of the second line there is only one value to read so it is read and then the advance to the next line. And continues to the end of the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2016 22:50:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Raw-data-file-using-double-trailing/m-p/288698#M59555</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-08-01T22:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Raw data file using double trailing @@</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Raw-data-file-using-double-trailing/m-p/288713#M59562</link>
      <description>&lt;P&gt;Hi, this isn't a warning. It is a NOTE. It is describing exactly what happened. So, for example, see this screen shot:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4384i6DC684CAE26FEA14/image-size/original?v=v2&amp;amp;px=-1" alt="read_charity.png" title="read_charity.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2016 20:25:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Raw-data-file-using-double-trailing/m-p/288713#M59562</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-08-01T20:25:25Z</dc:date>
    </item>
  </channel>
</rss>

