<?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 option in PDV in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/DROP-option-in-PDV/m-p/868551#M343117</link>
    <description>&lt;P&gt;what PDV does for drop variables any disk space&amp;nbsp; to read in input buffer&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Apr 2023 05:00:13 GMT</pubDate>
    <dc:creator>BrahmanandaRao</dc:creator>
    <dc:date>2023-04-07T05:00:13Z</dc:date>
    <item>
      <title>DROP option in PDV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DROP-option-in-PDV/m-p/868549#M343115</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data n;
set sashelp.class (drop=height weight);
putlog height weight  ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In the above code drop variables creates automatic variables in _error_ and _n_ in PDV&lt;/P&gt;
&lt;P&gt;even if not&amp;nbsp;&lt;SPAN&gt;uninitialized is it occupied disk space&amp;nbsp; &amp;nbsp;i am using putlog along with height and weight variables&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;log window show as below.&lt;/SPAN&gt;&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="Anandkvn_0-1680842226263.png" style="width: 328px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82404i9521716BAE40DD9B/image-dimensions/328x217?v=v2" width="328" height="217" role="button" title="Anandkvn_0-1680842226263.png" alt="Anandkvn_0-1680842226263.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>Fri, 07 Apr 2023 04:37:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DROP-option-in-PDV/m-p/868549#M343115</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2023-04-07T04:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: DROP option in PDV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DROP-option-in-PDV/m-p/868550#M343116</link>
      <description>&lt;P&gt;I do not understand what you are asking.&lt;/P&gt;
&lt;P&gt;You read in SASHELP.CLASS but exclude the HEIGHT and WEIGHT variables.&lt;/P&gt;
&lt;P&gt;You then create NEW variables named HEIGHT and WEIGHT by using them in the PUTLOG statement.&lt;/P&gt;
&lt;P&gt;Since you never assigned any value to them you will get 19 lines written to the SAS log with two periods (or whatever character you have told SAS to use to represent missing values by change the MISSING system option).&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 04:56:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DROP-option-in-PDV/m-p/868550#M343116</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-04-07T04:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: DROP option in PDV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DROP-option-in-PDV/m-p/868551#M343117</link>
      <description>&lt;P&gt;what PDV does for drop variables any disk space&amp;nbsp; to read in input buffer&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 05:00:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DROP-option-in-PDV/m-p/868551#M343117</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2023-04-07T05:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: DROP option in PDV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DROP-option-in-PDV/m-p/868552#M343118</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265860"&gt;@BrahmanandaRao&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;what PDV does for drop variables any disk space&amp;nbsp; to read in input buffer&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do you mean "program data vector"?&amp;nbsp; I don't use that terminology as it does not really help me think about how SAS works.&amp;nbsp; Just keep track in your mind about which variables you are using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you dropped the HEIGHT and WEIGHT from SASHELP.CLASS before you read them in you can forget about them completely.&amp;nbsp; They don't exist in this data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So after the SET statement you have created NAME, SEX and AGE variables.&lt;/P&gt;
&lt;P&gt;Then after the PUTLOG statement you have created HEIGHT and WEIGHT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So your data step has 5 variables, two of which will be missing on every observation since no values are ever assigned to them.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 05:04:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DROP-option-in-PDV/m-p/868552#M343118</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-04-07T05:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: DROP option in PDV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DROP-option-in-PDV/m-p/868589#M343129</link>
      <description>&lt;P&gt;I'm not sure what you're asking either.&amp;nbsp; But the automatic variables _error_ and _n_ are always in the PDV.&amp;nbsp; They are created by the DATA step itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;1    data _null_ ;
2      put _all_ ;
3    run ;

_ERROR_=0 _N_=1
&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Apr 2023 12:24:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DROP-option-in-PDV/m-p/868589#M343129</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-04-07T12:24:09Z</dc:date>
    </item>
  </channel>
</rss>

