<?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 @ and @@ in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/and/m-p/392535#M11928</link>
    <description>&lt;P&gt;I have some code below with the&amp;nbsp;@ sign that devides the data set into two datasets; first and second (using the @ sign):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data first second;&lt;BR /&gt;INPUT x y @;&lt;BR /&gt;OUTPUT first;&lt;BR /&gt;INPUT x y;&lt;BR /&gt;OUTPUT second;&lt;BR /&gt;DATALINES;&lt;BR /&gt;1 2 3 4 9 10&lt;BR /&gt;5 6 7 8&lt;BR /&gt;;&lt;BR /&gt;PROC PRINT data=first;&lt;BR /&gt;Title 'first';&lt;BR /&gt;RUN;&lt;BR /&gt;PROC PRINT data=second;&lt;BR /&gt;Title 'second';&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I replace the&amp;nbsp;@ sign with&amp;nbsp;@@ I am getting the same result but I was assuming I would not. I am wondering why the two different code produce the same output. Thank you for any advise.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2017 13:49:08 GMT</pubDate>
    <dc:creator>sas1981</dc:creator>
    <dc:date>2017-09-01T13:49:08Z</dc:date>
    <item>
      <title>@ and @@</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/and/m-p/392535#M11928</link>
      <description>&lt;P&gt;I have some code below with the&amp;nbsp;@ sign that devides the data set into two datasets; first and second (using the @ sign):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data first second;&lt;BR /&gt;INPUT x y @;&lt;BR /&gt;OUTPUT first;&lt;BR /&gt;INPUT x y;&lt;BR /&gt;OUTPUT second;&lt;BR /&gt;DATALINES;&lt;BR /&gt;1 2 3 4 9 10&lt;BR /&gt;5 6 7 8&lt;BR /&gt;;&lt;BR /&gt;PROC PRINT data=first;&lt;BR /&gt;Title 'first';&lt;BR /&gt;RUN;&lt;BR /&gt;PROC PRINT data=second;&lt;BR /&gt;Title 'second';&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I replace the&amp;nbsp;@ sign with&amp;nbsp;@@ I am getting the same result but I was assuming I would not. I am wondering why the two different code produce the same output. Thank you for any advise.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 13:49:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/and/m-p/392535#M11928</guid>
      <dc:creator>sas1981</dc:creator>
      <dc:date>2017-09-01T13:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: @ and @@</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/and/m-p/392559#M11929</link>
      <description>&lt;P&gt;You defeat the functionality of&amp;nbsp;@ and @@ by including two input statements. Try the following:&lt;/P&gt;
&lt;PRE&gt;data first_a second_a;
  INPUT x y @;
  if mod(_n_,2) then OUTPUT first_a;
  else OUTPUT second_a;
  DATALINES;
1 2 3 4 5 6
7 8 9 10 11 12
;

data first_b second_b;
  INPUT x y @@;
  if mod(_n_,2) then OUTPUT first_b;
  else OUTPUT second_b;
  DATALINES;
1 2 3 4 5 6
7 8 9 10 11 12
;
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 14:43:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/and/m-p/392559#M11929</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-09-01T14:43:02Z</dc:date>
    </item>
  </channel>
</rss>

