<?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: Is stop statement necessary? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Is-stop-statement-necessary/m-p/253312#M48186</link>
    <description>&lt;P&gt;Actually if you have the STOP statement you do not need the IF statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  set sashelp.class;
  call symput('_name_',name);
  stop;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 29 Feb 2016 22:40:36 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2016-02-29T22:40:36Z</dc:date>
    <item>
      <title>Is stop statement necessary?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-stop-statement-necessary/m-p/253280#M48162</link>
      <description>&lt;P&gt;The two prgrams meant to create a macro variable &amp;amp;_name_. Is stop statment redundant in first progam as program will terminate eventually anyway?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
	set sashelp.class;

	if _n_=1 then
		do;
			call symput('_name_',name);
			stop;
		end;
run;


data _null_;
	set sashelp.class;

	if _n_=1 then
		do;
			call symput('_name_',name);
		end;
run;

%put &amp;amp;_name_;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Feb 2016 21:18:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-stop-statement-necessary/m-p/253280#M48162</guid>
      <dc:creator>SAS_inquisitive</dc:creator>
      <dc:date>2016-02-29T21:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is stop statement necessary?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-stop-statement-necessary/m-p/253289#M48170</link>
      <description>&lt;P&gt;STOP; prevents the data step from doing nothing for the other 18 records in SASHELP.CLASS.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Feb 2016 21:04:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-stop-statement-necessary/m-p/253289#M48170</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-02-29T21:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is stop statement necessary?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-stop-statement-necessary/m-p/253294#M48174</link>
      <description>@ data_null_, thanks. I have seen people coding both ways.</description>
      <pubDate>Mon, 29 Feb 2016 21:19:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-stop-statement-necessary/m-p/253294#M48174</guid>
      <dc:creator>SAS_inquisitive</dc:creator>
      <dc:date>2016-02-29T21:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is stop statement necessary?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-stop-statement-necessary/m-p/253299#M48177</link>
      <description>&lt;P&gt;Stopping when the work is done makes it look like you know what you're doing.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Feb 2016 21:27:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-stop-statement-necessary/m-p/253299#M48177</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-02-29T21:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is stop statement necessary?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-stop-statement-necessary/m-p/253312#M48186</link>
      <description>&lt;P&gt;Actually if you have the STOP statement you do not need the IF statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  set sashelp.class;
  call symput('_name_',name);
  stop;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Feb 2016 22:40:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-stop-statement-necessary/m-p/253312#M48186</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-02-29T22:40:36Z</dc:date>
    </item>
  </channel>
</rss>

