<?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: Does does SAS crash when I change the order of the Drop option? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848948#M335653</link>
    <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;You are confusing DATASET OPTIONS&amp;nbsp; - brackets required - and PROCEDURE OPTIONS - no brackets required. See the documentation link in my earlier response.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I really have no idea that you're talking about. if you could come up with examples using the sashelp.cars so I can understand what you're trying to convey.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And () are called parenthesis, [] are brackets, do you mean () outside the drop option?&lt;/P&gt;</description>
    <pubDate>Sat, 10 Dec 2022 23:56:08 GMT</pubDate>
    <dc:creator>Nietzsche</dc:creator>
    <dc:date>2022-12-10T23:56:08Z</dc:date>
    <item>
      <title>Does SAS crash when I change the order of the Drop option?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848938#M335645</link>
      <description>&lt;P&gt;Hello, I don't understand why SAS runs fine when I run the following code with drop option before the stat keywords mean and std and gives me the desired result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc means data=sashelp.cars (drop=origin) mean std;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nietzsche_3-1670713218050.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78288i1432672E61EB0CDD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Nietzsche_3-1670713218050.png" alt="Nietzsche_3-1670713218050.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I follow the book's syntax order and put the DROP option after the stat keywords, it crashes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nietzsche_5-1670713337306.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78290i962684E82D0C00B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Nietzsche_5-1670713337306.png" alt="Nietzsche_5-1670713337306.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;BR /&gt;proc means data=sashelp.cars mean std (drop=origin);
run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nietzsche_2-1670713165126.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78287iDF2BF2AA1B4F6DCA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Nietzsche_2-1670713165126.png" alt="Nietzsche_2-1670713165126.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 09:54:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848938#M335645</guid>
      <dc:creator>Nietzsche</dc:creator>
      <dc:date>2022-12-12T09:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Does does SAS crash when I change the order of the Drop option?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848939#M335646</link>
      <description>&lt;P&gt;The order in which you specify the options in PROC MEANS matters. When you specify the DROP option before the stat keywords MEAN and STD, the SAS compiler is aware that you want to drop the ORIGIN variable from the calculation of the MEAN and STD. However, when you specify the DROP option after the stat keywords, the SAS compiler does not recognize it, therefore it crashes.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 23:15:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848939#M335646</guid>
      <dc:creator>ger15xxhcker</dc:creator>
      <dc:date>2022-12-10T23:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Does does SAS crash when I change the order of the Drop option?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848940#M335647</link>
      <description>&lt;P&gt;DROP = is a dataset OPTION and must immediately follow the dataset it applies to inside brackets. The PROC MEANS statement has its own options. They don't require brackets and can be specified in any order after PROC MEANS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also SAS has not crashed. All that has happened is SAS has stopped running the MEANS step because of the syntax error.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 23:24:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848940#M335647</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-12-10T23:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Does does SAS crash when I change the order of the Drop option?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848942#M335648</link>
      <description>&lt;P&gt;Does that mean the book got the order of the syntax wrong?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it looks like it that way from the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1qnc9bddfvhzqn105kqitnf29cp.htm" target="_self"&gt;documentation on PROC MEANS&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nietzsche_0-1670714587475.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78291i34A07220830CF729/image-size/large?v=v2&amp;amp;px=999" role="button" title="Nietzsche_0-1670714587475.png" alt="Nietzsche_0-1670714587475.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 23:23:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848942#M335648</guid>
      <dc:creator>Nietzsche</dc:creator>
      <dc:date>2022-12-10T23:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Does does SAS crash when I change the order of the Drop option?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848945#M335650</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;The PROC MEANS statement has its own options. They don't require brackets and can be specified in any order after PROC MEANS.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;yeah they do require parentheses, otherwise SAS will give an error, and I just given an example that shows order DOES matter.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nietzsche_0-1670715099774.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78292i659935216F488E7A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nietzsche_0-1670715099774.png" alt="Nietzsche_0-1670715099774.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 23:31:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848945#M335650</guid>
      <dc:creator>Nietzsche</dc:creator>
      <dc:date>2022-12-10T23:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Does does SAS crash when I change the order of the Drop option?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848946#M335651</link>
      <description>&lt;P&gt;No, you also need to look at the documentation covering &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n0f499g9w3oyxwn17uas8f8ook5q.htm" target="_blank" rel="noopener"&gt;DATASET OPTIONS&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 23:35:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848946#M335651</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-12-10T23:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Does does SAS crash when I change the order of the Drop option?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848947#M335652</link>
      <description>&lt;P&gt;You are confusing DATASET OPTIONS&amp;nbsp; - brackets required - and PROCEDURE OPTIONS - no brackets required. See the documentation link in my earlier response.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 23:38:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848947#M335652</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-12-10T23:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Does does SAS crash when I change the order of the Drop option?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848948#M335653</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;You are confusing DATASET OPTIONS&amp;nbsp; - brackets required - and PROCEDURE OPTIONS - no brackets required. See the documentation link in my earlier response.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I really have no idea that you're talking about. if you could come up with examples using the sashelp.cars so I can understand what you're trying to convey.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And () are called parenthesis, [] are brackets, do you mean () outside the drop option?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 23:56:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848948#M335653</guid>
      <dc:creator>Nietzsche</dc:creator>
      <dc:date>2022-12-10T23:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Does does SAS crash when I change the order of the Drop option?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848951#M335654</link>
      <description>&lt;P&gt;Hopefully this &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n0f499g9w3oyxwn17uas8f8ook5q.htm" target="_blank" rel="noopener"&gt;documentation link&lt;/A&gt; will help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A DATASET option example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data = sashelp.class (drop = age); * Dataset option;
run;

proc print data = sashelp.class label; * procedure statement option;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2022 00:31:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848951#M335654</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-12-11T00:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Does does SAS crash when I change the order of the Drop option?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848952#M335655</link>
      <description>&lt;P&gt;There is no DROP option on the PROC MEANS statement.&amp;nbsp; &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1qnc9bddfvhzqn105kqitnf29cp.htm" target="_self"&gt;Read the manual&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Your code does not include any DROP option anyway.&lt;/P&gt;
&lt;P&gt;The working example is using the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/ledsoptsref/p1rc3i2de8tgjtn1ljwdq6ajnpic.htm" target="_self"&gt;DROP= dataset option&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The failed code is an example of misplaced set of dataset options.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2022 00:45:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848952#M335655</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-12-11T00:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Does does SAS crash when I change the order of the Drop option?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848961#M335661</link>
      <description>&lt;P&gt;DROP= is a&amp;nbsp;&lt;EM&gt;dataset option&lt;/EM&gt;, and therefore an integral part of the DATA=&amp;nbsp;&lt;EM&gt;procedure option&lt;/EM&gt;. You must not separate dataset options from their dataset name. Keep in mind that a single statement may have multiple options naming datasets (e.g. DATA=, OUT=, DUPOUT= in a PROC SORT), and it must be clear which dataset options belong to which dataset.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2022 06:19:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848961#M335661</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-12-11T06:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Does does SAS crash when I change the order of the Drop option?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848962#M335662</link>
      <description>&lt;P&gt;() are round brackets, [] are square brackets, and {} curly brackets (&lt;A href="https://www.englishclub.com/writing/punctuation-brackets.htm" target="_blank" rel="noopener"&gt;https://www.englishclub.com/writing/punctuation-brackets.htm&lt;/A&gt;).&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2022 06:22:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/848962#M335662</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-12-11T06:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Does does SAS crash when I change the order of the Drop option?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/849272#M335768</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;() are round brackets, [] are square brackets, and {} curly brackets (&lt;/SPAN&gt;&lt;A href="https://www.englishclub.com/writing/punctuation-brackets.htm" target="_blank" rel="noopener nofollow noreferrer"&gt;https://www.englishclub.com/writing/punctuation-brackets.htm&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;okay, in other programming communities, like python, they call () strictly parenthesis and [] brackets to avoid confusion when making list and tuples.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 22:33:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-SAS-crash-when-I-change-the-order-of-the-Drop-option/m-p/849272#M335768</guid>
      <dc:creator>Nietzsche</dc:creator>
      <dc:date>2022-12-12T22:33:21Z</dc:date>
    </item>
  </channel>
</rss>

