<?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: Variables written to output dataset in DATA STEP in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Variables-written-to-output-dataset-in-DATA-STEP/m-p/532553#M145936</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can use the DROP or KEEP statements&lt;/P&gt;</description>
    <pubDate>Mon, 04 Feb 2019 12:36:55 GMT</pubDate>
    <dc:creator>Oligolas</dc:creator>
    <dc:date>2019-02-04T12:36:55Z</dc:date>
    <item>
      <title>Variables written to output dataset in DATA STEP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Variables-written-to-output-dataset-in-DATA-STEP/m-p/532548#M145935</link>
      <description>&lt;P&gt;&lt;STRONG&gt;How can you limit the variables written to output dataset in DATA STEP?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 12:20:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Variables-written-to-output-dataset-in-DATA-STEP/m-p/532548#M145935</guid>
      <dc:creator>rinugour</dc:creator>
      <dc:date>2019-02-04T12:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Variables written to output dataset in DATA STEP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Variables-written-to-output-dataset-in-DATA-STEP/m-p/532553#M145936</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can use the DROP or KEEP statements&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 12:36:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Variables-written-to-output-dataset-in-DATA-STEP/m-p/532553#M145936</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2019-02-04T12:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Variables written to output dataset in DATA STEP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Variables-written-to-output-dataset-in-DATA-STEP/m-p/532555#M145937</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As well as the &lt;FONT face="courier new,courier"&gt;keep&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;drop&lt;/FONT&gt; statements answer already given by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/77163"&gt;@Oligolas&lt;/a&gt;&amp;nbsp;there are also &lt;FONT face="courier new,courier"&gt;keep=&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;drop=&lt;/FONT&gt; data set options.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For syntax details and an example, see the documentation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000131144.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000131144.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 13:01:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Variables-written-to-output-dataset-in-DATA-STEP/m-p/532555#M145937</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2019-02-04T13:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Variables written to output dataset in DATA STEP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Variables-written-to-output-dataset-in-DATA-STEP/m-p/532896#M146064</link>
      <description>&lt;P&gt;Both DROP and KEEP can be used to limit the variables in the &lt;A href="https://data-flair.training/blogs/sas-data-set/" target="_self"&gt;dataset&lt;/A&gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The&amp;nbsp;&lt;STRONG&gt;DROP=&lt;/STRONG&gt;option tells SAS which variables you want to&amp;nbsp;&amp;nbsp;If you place the&amp;nbsp;DROP=&amp;nbsp;option on the SET statement, SAS drops the specified variables when it reads the input data set and if you place the&amp;nbsp;DROP=&amp;nbsp;option on the DATA statement, SAS drops the specified variables when it writes to the output data set.&lt;/LI&gt;&lt;LI&gt;The&amp;nbsp;&lt;STRONG&gt;KEEP=&lt;/STRONG&gt;option tells SAS which variables you want to&amp;nbsp;&amp;nbsp;If you place the&amp;nbsp;KEEP=&amp;nbsp;option on the SET statement, SAS keeps the listed variables when it reads the input data set. On the other hand, if you place the&amp;nbsp;KEEP=&amp;nbsp;option on the DATA statement, SAS keeps the specified variables when it writes to the output data set.&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 05 Feb 2019 12:02:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Variables-written-to-output-dataset-in-DATA-STEP/m-p/532896#M146064</guid>
      <dc:creator>anjita</dc:creator>
      <dc:date>2019-02-05T12:02:11Z</dc:date>
    </item>
  </channel>
</rss>

