<?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: SAS data _null_ file question about @@ in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-data-null-file-question-about/m-p/267512#M52884</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10531"&gt;@GeorgeSAS﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The double trailing&amp;nbsp;@ line-hold specifier is mostly used with an INPUT statement, as in Example 4 of the &lt;A href="http://support.sas.com/documentation/cdl/en/syntaxidx/68719/HTML/default/index.htm#/documentation/cdl//en/lestmtsref/68024/HTML/default/n0oaql83drile0n141pdacojq97s.htm" target="_blank"&gt;documentation&lt;/A&gt;&amp;nbsp;(please see explanations there). If you insist on an example with data &lt;EM&gt;_null_ &lt;/EM&gt;(and a &lt;EM&gt;FILE&lt;/EM&gt; statement?), here's an adapted version:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
file print;
input name $ age @@;
put name age;
datalines;
John 13 Monica 12 Sue 15 Stephen 10
Marc 22 Lily 17
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Line-hold specifiers can also be used with a PUT statement. In this case, however, the single and double trailing&amp;nbsp;@ are equivalent, so that writing "@@" is unnecessary (again, please see &lt;A href="http://support.sas.com/documentation/cdl/en/syntaxidx/68719/HTML/default/index.htm#/documentation/cdl//en/lestmtsref/68024/HTML/default/n1spe7nmkmi7ywn175002rof97fv.htm" target="_blank"&gt;documentation&lt;/A&gt;, esp. example 5 there). Here is another example (including a FILE statement):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
file print;
length c $11;
do c='first', 'line', 'second', 'line', repeat('-',10);
  put c @;
  if c='line' then put;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The second PUT statement (called "null PUT statement" in the documentation) releases the output line so that the intended line breaks occur.&lt;/P&gt;</description>
    <pubDate>Sun, 01 May 2016 23:07:40 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2016-05-01T23:07:40Z</dc:date>
    <item>
      <title>SAS data _null_ file question about @@</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-data-null-file-question-about/m-p/267510#M52883</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would&amp;nbsp; anyone can please give me an example of how to using '@@' in a data _null_; file&amp;nbsp; example?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 01 May 2016 20:51:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-data-null-file-question-about/m-p/267510#M52883</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2016-05-01T20:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS data _null_ file question about @@</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-data-null-file-question-about/m-p/267512#M52884</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10531"&gt;@GeorgeSAS﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The double trailing&amp;nbsp;@ line-hold specifier is mostly used with an INPUT statement, as in Example 4 of the &lt;A href="http://support.sas.com/documentation/cdl/en/syntaxidx/68719/HTML/default/index.htm#/documentation/cdl//en/lestmtsref/68024/HTML/default/n0oaql83drile0n141pdacojq97s.htm" target="_blank"&gt;documentation&lt;/A&gt;&amp;nbsp;(please see explanations there). If you insist on an example with data &lt;EM&gt;_null_ &lt;/EM&gt;(and a &lt;EM&gt;FILE&lt;/EM&gt; statement?), here's an adapted version:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
file print;
input name $ age @@;
put name age;
datalines;
John 13 Monica 12 Sue 15 Stephen 10
Marc 22 Lily 17
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Line-hold specifiers can also be used with a PUT statement. In this case, however, the single and double trailing&amp;nbsp;@ are equivalent, so that writing "@@" is unnecessary (again, please see &lt;A href="http://support.sas.com/documentation/cdl/en/syntaxidx/68719/HTML/default/index.htm#/documentation/cdl//en/lestmtsref/68024/HTML/default/n1spe7nmkmi7ywn175002rof97fv.htm" target="_blank"&gt;documentation&lt;/A&gt;, esp. example 5 there). Here is another example (including a FILE statement):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
file print;
length c $11;
do c='first', 'line', 'second', 'line', repeat('-',10);
  put c @;
  if c='line' then put;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The second PUT statement (called "null PUT statement" in the documentation) releases the output line so that the intended line breaks occur.&lt;/P&gt;</description>
      <pubDate>Sun, 01 May 2016 23:07:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-data-null-file-question-about/m-p/267512#M52884</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-05-01T23:07:40Z</dc:date>
    </item>
  </channel>
</rss>

