<?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: Drop statement for dropping list of variables. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Drop-statement-for-dropping-list-of-variables/m-p/386495#M92583</link>
    <description>&lt;P&gt;Let's look at the choices.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 309px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14395i21BAF157A95AF5BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;B anc C are wrong because they have commas.&lt;/P&gt;
&lt;P&gt;B and D are wrong because they dont have the equal sign that all dataset options require.&lt;/P&gt;
&lt;P&gt;So A is the best answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But all four are wrong because the parenthesis themselves are not part of the DROP= dataset option. &amp;nbsp;If you have other dataset options, like LABEL= or RENAME= they would all be nested inside the single set of () following the dataset name.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2017 06:44:26 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2017-08-09T06:44:26Z</dc:date>
    <item>
      <title>Drop statement for dropping list of variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Drop-statement-for-dropping-list-of-variables/m-p/386476#M92568</link>
      <description>&lt;P&gt;Got stuck with a problem related to Drop statement.attached herewith the problem and its 4 options.&lt;/P&gt;&lt;P&gt;Please help me to find 1.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 04:43:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Drop-statement-for-dropping-list-of-variables/m-p/386476#M92568</guid>
      <dc:creator>rajvir</dc:creator>
      <dc:date>2017-08-09T04:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Drop statement for dropping list of variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Drop-statement-for-dropping-list-of-variables/m-p/386477#M92569</link>
      <description>&lt;P&gt;Post your questions directly into the forum, not as attachments. Many users will not download attachments.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 04:49:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Drop-statement-for-dropping-list-of-variables/m-p/386477#M92569</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-09T04:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Drop statement for dropping list of variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Drop-statement-for-dropping-list-of-variables/m-p/386485#M92575</link>
      <description>&lt;P&gt;There are two ways to use DROP statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) &amp;nbsp;data wnat(&lt;STRONG&gt;DROP=&lt;/STRONG&gt;var1 var2 ...); &amp;nbsp;/* with the equal sign */&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;... any code ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) &amp;nbsp;data want;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ... any code ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;DROP&lt;/STRONG&gt; var1 var2 ...; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* without the equal sign */&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; run;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 06:12:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Drop-statement-for-dropping-list-of-variables/m-p/386485#M92575</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-08-09T06:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Drop statement for dropping list of variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Drop-statement-for-dropping-list-of-variables/m-p/386495#M92583</link>
      <description>&lt;P&gt;Let's look at the choices.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 309px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14395i21BAF157A95AF5BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;B anc C are wrong because they have commas.&lt;/P&gt;
&lt;P&gt;B and D are wrong because they dont have the equal sign that all dataset options require.&lt;/P&gt;
&lt;P&gt;So A is the best answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But all four are wrong because the parenthesis themselves are not part of the DROP= dataset option. &amp;nbsp;If you have other dataset options, like LABEL= or RENAME= they would all be nested inside the single set of () following the dataset name.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 06:44:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Drop-statement-for-dropping-list-of-variables/m-p/386495#M92583</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-08-09T06:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Drop statement for dropping list of variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Drop-statement-for-dropping-list-of-variables/m-p/386730#M92659</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14410i99E57CE87A82BC98/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&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;&lt;P&gt;&amp;nbsp;&lt;/P&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;&lt;P&gt;&amp;nbsp;&lt;/P&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;&lt;P&gt;&amp;nbsp;&lt;/P&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;&lt;P&gt;Hello Tom&lt;/P&gt;&lt;P&gt;But if we look at the given code its doesnt seem like a drop dataset option .&lt;/P&gt;&lt;P&gt;It looks like a statement so should it be the &lt;STRONG&gt;option D &lt;/STRONG&gt;but ofcourse as you said without the () brackets.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 17:40:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Drop-statement-for-dropping-list-of-variables/m-p/386730#M92659</guid>
      <dc:creator>rajvir</dc:creator>
      <dc:date>2017-08-09T17:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Drop statement for dropping list of variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Drop-statement-for-dropping-list-of-variables/m-p/386736#M92661</link>
      <description>&lt;P&gt;The question specifically asked for how to specify the drop using dataset options.&amp;nbsp;&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="image.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14413iBFDF1B8D6191AB95/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 17:50:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Drop-statement-for-dropping-list-of-variables/m-p/386736#M92661</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-08-09T17:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Drop statement for dropping list of variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Drop-statement-for-dropping-list-of-variables/m-p/386764#M92677</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/158053"&gt;@rajvir&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello Tom&lt;/P&gt;
&lt;P&gt;But if we look at the given code its doesnt seem like a drop dataset option .&lt;/P&gt;
&lt;P&gt;It looks like a statement so should it be the &lt;STRONG&gt;option D &lt;/STRONG&gt;but ofcourse as you said without the () brackets.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;A good rule of thumb if you're not certain about something is to check the documentation. You may not always understand exactly what it's saying, but the examples will often help with that. Reading through the examples may help with your understanding of the DROP dataset option, versus the DROP statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DROP, data step option&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/ledsoptsref/69751/HTML/default/viewer.htm#n15goor3q758g5n1eykstufkpdhy.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/ledsoptsref/69751/HTML/default/viewer.htm#n15goor3q758g5n1eykstufkpdhy.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DROP, statement&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/69738/HTML/default/viewer.htm#n1capr0s7tilbvn1lypdshkgpaip.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lestmtsref/69738/HTML/default/viewer.htm#n1capr0s7tilbvn1lypdshkgpaip.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Documentation examples/explanations:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/basess/68381/HTML/default/viewer.htm#p10jjd7e6qn396n1a22uvw3va3ao.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/68381/HTML/default/viewer.htm#p10jjd7e6qn396n1a22uvw3va3ao.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 18:50:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Drop-statement-for-dropping-list-of-variables/m-p/386764#M92677</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-09T18:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Drop statement for dropping list of variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Drop-statement-for-dropping-list-of-variables/m-p/386787#M92689</link>
      <description>oops sorry ...You are right ......</description>
      <pubDate>Wed, 09 Aug 2017 19:39:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Drop-statement-for-dropping-list-of-variables/m-p/386787#M92689</guid>
      <dc:creator>rajvir</dc:creator>
      <dc:date>2017-08-09T19:39:03Z</dc:date>
    </item>
  </channel>
</rss>

