<?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: Difference between Run and Quit statement in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Difference-between-Run-and-Quit-statement/m-p/565558#M11204</link>
    <description>&lt;P&gt;Not sure if this will help or not but figured I would provide the information and source link:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;The difference between a RUN statement and a QUIT statement is that a RUN statement executes previously submitted SAS statements and a QUIT statement executes previously submitted SAS statements and ends the procedure. The QUIT statement is used for RUN-group processing that enables you to submit certain procedures with a RUN statement, but the RUN statement will not end the procedure. This allows you to continue to use the same procedure without submitting another procedure. With RUN-group processing you must submit either a RUN CANCEL or a QUIT statement to end the procedure. A few examples of Base SAS procedures that are RUN-group processing procedures are: CATALOG, DATASETS, and PLOT. The SQL procedure is similar but each query is automatically executed, and a RUN statement or RUN CANCEL statement have no effect. In order to end the SQL procedure, you must use a QUIT statement.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/40/887.html" target="_self"&gt;http://support.sas.com/kb/40/887.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2019 13:51:26 GMT</pubDate>
    <dc:creator>tsap</dc:creator>
    <dc:date>2019-06-12T13:51:26Z</dc:date>
    <item>
      <title>Difference between Run and Quit statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Difference-between-Run-and-Quit-statement/m-p/565555#M11201</link>
      <description>I am new to SAS. Could you please advise what is the difference b/w Run and Quit, both can be used to terminate the programme.</description>
      <pubDate>Wed, 12 Jun 2019 13:43:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Difference-between-Run-and-Quit-statement/m-p/565555#M11201</guid>
      <dc:creator>Kamal5522</dc:creator>
      <dc:date>2019-06-12T13:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Run and Quit statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Difference-between-Run-and-Quit-statement/m-p/565557#M11203</link>
      <description>&lt;P&gt;Neither one will terminate a SAS program. They are used to end steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whether a step uses QUIT or not depends on whether it allows "run groups".&amp;nbsp; That is that you can run something without leaving the procedure and then add more statements and run those. For procedures that support run groups you need to use the QUIT statement to end the procedure.&amp;nbsp; Also PROC SQL needs a QUIT statement but it does NOT support the RUN statement, but that is because each statement runs immediately.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 13:49:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Difference-between-Run-and-Quit-statement/m-p/565557#M11203</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-06-12T13:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Run and Quit statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Difference-between-Run-and-Quit-statement/m-p/565558#M11204</link>
      <description>&lt;P&gt;Not sure if this will help or not but figured I would provide the information and source link:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;The difference between a RUN statement and a QUIT statement is that a RUN statement executes previously submitted SAS statements and a QUIT statement executes previously submitted SAS statements and ends the procedure. The QUIT statement is used for RUN-group processing that enables you to submit certain procedures with a RUN statement, but the RUN statement will not end the procedure. This allows you to continue to use the same procedure without submitting another procedure. With RUN-group processing you must submit either a RUN CANCEL or a QUIT statement to end the procedure. A few examples of Base SAS procedures that are RUN-group processing procedures are: CATALOG, DATASETS, and PLOT. The SQL procedure is similar but each query is automatically executed, and a RUN statement or RUN CANCEL statement have no effect. In order to end the SQL procedure, you must use a QUIT statement.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/40/887.html" target="_self"&gt;http://support.sas.com/kb/40/887.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 13:51:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Difference-between-Run-and-Quit-statement/m-p/565558#M11204</guid>
      <dc:creator>tsap</dc:creator>
      <dc:date>2019-06-12T13:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Run and Quit statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Difference-between-Run-and-Quit-statement/m-p/716989#M27480</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for digging this topic up, I am looking for the difference between RUN and QUIT and see this post.&lt;/P&gt;
&lt;P&gt;I read your answer and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/22122"&gt;@tsap&lt;/a&gt;&amp;nbsp;&amp;nbsp;additional document but I am still confused.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please explain or give me an example for this sentence to me a little bit&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;run something without leaving the procedure and then add more statements and run those&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;and&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Also PROC SQL needs a QUIT statement but it does NOT support the RUN statement, but that is because each statement runs immediately&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;and&lt;/BLOCKQUOTE&gt;
&lt;HR /&gt;
&lt;P&gt;&lt;SPAN&gt;The QUIT statement is used for RUN-group processing that enables you to submit certain procedures with a RUN statement, but the RUN statement will not end the procedure. This allows you to continue to use the same procedure without submitting another procedure.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;Warm regards.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 08:23:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Difference-between-Run-and-Quit-statement/m-p/716989#M27480</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-02-05T08:23:24Z</dc:date>
    </item>
  </channel>
</rss>

