<?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 must be included in set statement? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Drop-statement-must-be-included-in-set-statement/m-p/742106#M232060</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;drop=MinPressure;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is not valid syntax. If you remove the equal sign, it should work. (When you use DROP as a data set option as in a SET statement, then the equal sign is required)&lt;/P&gt;</description>
    <pubDate>Tue, 18 May 2021 11:27:22 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-05-18T11:27:22Z</dc:date>
    <item>
      <title>Drop statement must be included in set statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Drop-statement-must-be-included-in-set-statement/m-p/742103#M232057</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data indian(drop=MaxWindMPH) atlantic(drop=MaxWindKM) pacific;
	set pg2.storm_summary&lt;STRONG&gt;(drop=MinPressure)&lt;/STRONG&gt;; *Notice where drop is here;
	
	&lt;STRONG&gt;*drop=MinPressure; *This does not work? I have to include it into the set statement, but according to picture (see below) I should not have to?;&lt;/STRONG&gt;
	
	length Ocean $ 8;
	Basin=upcase(Basin);
	StormLength=EndDate-StartDate;
	MaxWindKM=MaxWindMPH*1.60934;
	if substr(Basin,2,1)="I" then do;
		Ocean="Indian";
		output indian;
	end;
	else if substr(Basin,2,1)="A" then do;
		Ocean="Atlantic";
		output atlantic;
	end;
	else do;
		Ocean="Pacific";
		output pacific;
	end;
run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SasStatistics_0-1621335638686.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59537iB9253E4BB57537F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SasStatistics_0-1621335638686.png" alt="SasStatistics_0-1621335638686.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 May 2021 11:01:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Drop-statement-must-be-included-in-set-statement/m-p/742103#M232057</guid>
      <dc:creator>SasStatistics</dc:creator>
      <dc:date>2021-05-18T11:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Drop statement must be included in set statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Drop-statement-must-be-included-in-set-statement/m-p/742106#M232060</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;drop=MinPressure;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is not valid syntax. If you remove the equal sign, it should work. (When you use DROP as a data set option as in a SET statement, then the equal sign is required)&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 11:27:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Drop-statement-must-be-included-in-set-statement/m-p/742106#M232060</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-05-18T11:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Drop statement must be included in set statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Drop-statement-must-be-included-in-set-statement/m-p/742109#M232063</link>
      <description>&lt;P&gt;The DROP&amp;nbsp;&lt;U&gt;&lt;EM&gt;statement&lt;/EM&gt;&lt;/U&gt; is its own statement and cannot be part of another statement.&lt;/P&gt;
&lt;P&gt;The DROP=&amp;nbsp;&lt;EM&gt;&lt;U&gt;dataset option&lt;/U&gt;&lt;/EM&gt; can be part of any dataset specification (SET, MERGE, DATA, DATA=, CREATE TABLE AS, FROM).&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;&lt;STRONG&gt;STRONGLY&amp;nbsp;&lt;/STRONG&gt;suggest you use the SAS documentation for your further studies, particularly the&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/lestmtsref/n1capr0s7tilbvn1lypdshkgpaip.htm" target="_blank" rel="noopener"&gt;DROP Statement&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 11:40:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Drop-statement-must-be-included-in-set-statement/m-p/742109#M232063</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-05-18T11:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Drop statement must be included in set statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Drop-statement-must-be-included-in-set-statement/m-p/742113#M232065</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/381436"&gt;@SasStatistics&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;From the screenshot, it looks like you are taking some training. I would suggest that you go back over the Directing DATA Step Output section, as it probably explained the difference between &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/n1capr0s7tilbvn1lypdshkgpaip.htm" target="_self"&gt;Drop Statement&lt;/A&gt; and &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/ledsoptsref/n15goor3q758g5n1eykstufkpdhy.htm" target="_self"&gt;Drop Data Set Option&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 12:11:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Drop-statement-must-be-included-in-set-statement/m-p/742113#M232065</guid>
      <dc:creator>AMSAS</dc:creator>
      <dc:date>2021-05-18T12:11:27Z</dc:date>
    </item>
  </channel>
</rss>

