<?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 What is the usage of ENDSAS statement? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-usage-of-ENDSAS-statement/m-p/112072#M5923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Dear all,&lt;/P&gt;&lt;P&gt;Would you please clarify to me the usage of the ENDSAS statement? I searched in our community but found no the very clear one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards and many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2012 09:30:59 GMT</pubDate>
    <dc:creator>Jack2012</dc:creator>
    <dc:date>2012-09-05T09:30:59Z</dc:date>
    <item>
      <title>What is the usage of ENDSAS statement?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-usage-of-ENDSAS-statement/m-p/112072#M5923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Dear all,&lt;/P&gt;&lt;P&gt;Would you please clarify to me the usage of the ENDSAS statement? I searched in our community but found no the very clear one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards and many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 09:30:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-usage-of-ENDSAS-statement/m-p/112072#M5923</guid>
      <dc:creator>Jack2012</dc:creator>
      <dc:date>2012-09-05T09:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: What is the usage of ENDSAS statement?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-usage-of-ENDSAS-statement/m-p/112073#M5924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Go through this link..It may be use full to you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000289392.htm" title="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000289392.htm"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000289392.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards..&lt;/P&gt;&lt;P&gt;Sanjeev.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 10:02:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-usage-of-ENDSAS-statement/m-p/112073#M5924</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2012-09-05T10:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: What is the usage of ENDSAS statement?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-usage-of-ENDSAS-statement/m-p/112074#M5925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;ENDSAS&lt;/STRONG&gt; statement immediately terminates the SAS job or session. An interactive program that writes output to the OUTPUT window should not use this statement because the contents of the OUTPUT window (as well as the LOG &amp;amp; Program Editor windows) will be lost. However when output is directed to files (as in a batch program or when using PROC PRINTTO) or when just data sets are being created, the ENDSAS statement can be used to control job or session termination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The entire job is terminated in the following data step if the&lt;/P&gt;&lt;P&gt;variable X is ever less than or equal to zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data new;&lt;/P&gt;&lt;P&gt;set old;&lt;/P&gt;&lt;P&gt;lnx=log(x);&lt;/P&gt;&lt;P&gt;if _error_ then endsas;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ENDSAS statement can also be used between steps when execution of only a portion of a program is desired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;…some SAS statements…&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;endsas;&lt;/P&gt;&lt;P&gt;…unexecuted SAS statements…&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H6&gt;Source:&lt;A href="https://docs.google.com/viewer?url=http%3A%2F%2Fwww2.sas.com%2Fproceedings%2Fsugi26%2Fp074-26.pdf"&gt;https://docs.google.com/viewer?url=http%3A%2F%2Fwww2.sas.com%2Fproceedings%2Fsugi26%2Fp074-26.pdf&lt;/A&gt;&lt;/H6&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards..&lt;/P&gt;&lt;P&gt;Sanjeev.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 10:08:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-usage-of-ENDSAS-statement/m-p/112074#M5925</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2012-09-05T10:08:54Z</dc:date>
    </item>
  </channel>
</rss>

