<?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: Option to only keep variables referenced in program in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Option-to-only-keep-variables-referenced-in-program/m-p/241582#M55705</link>
    <description>Create an VIEW ?</description>
    <pubDate>Mon, 04 Jan 2016 01:35:23 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-01-04T01:35:23Z</dc:date>
    <item>
      <title>Option to only keep variables referenced in program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Option-to-only-keep-variables-referenced-in-program/m-p/241524#M55694</link>
      <description>&lt;P&gt;Is there an option to only keep variables referenced in a program?&amp;nbsp; I would like to shrink a large dataset but would prefer not to have to identify 50-80 variables everytime I start a new analysis.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jan 2016 01:40:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Option-to-only-keep-variables-referenced-in-program/m-p/241524#M55694</guid>
      <dc:creator>td1234</dc:creator>
      <dc:date>2016-01-03T01:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Option to only keep variables referenced in program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Option-to-only-keep-variables-referenced-in-program/m-p/241528#M55696</link>
      <description>&lt;P&gt;There isn't such an option. &amp;nbsp;However, you might be able to lessen the workload. &amp;nbsp;Instead of naming 50 to 80 variables toward the end of the program, you might be able to keep just 20 or 30 variables at the beginning of the program. &amp;nbsp;Those would be kept, along with all variables that are calculated by executing the program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without more specifics about what the program does, it's difficult to give more specific suggestions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the variables you are keeping have recognizable patterns to their variable names, additional possibilities exist. &amp;nbsp;For example, it's easy to keep all variables where the variable name begins with "var_".&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jan 2016 02:50:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Option-to-only-keep-variables-referenced-in-program/m-p/241528#M55696</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-01-03T02:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Option to only keep variables referenced in program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Option-to-only-keep-variables-referenced-in-program/m-p/241529#M55697</link>
      <description>&lt;P&gt;Thanks. What is the syntax for keeping all var that start with "var_"?&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jan 2016 02:58:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Option-to-only-keep-variables-referenced-in-program/m-p/241529#M55697</guid>
      <dc:creator>td1234</dc:creator>
      <dc:date>2016-01-03T02:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Option to only keep variables referenced in program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Option-to-only-keep-variables-referenced-in-program/m-p/241530#M55698</link>
      <description>&lt;P&gt;Use the colon operator to specify a prefix.&lt;BR /&gt;Keep var_:;&lt;BR /&gt;&lt;BR /&gt;Use a list for variables that are sequentially labelled.&lt;BR /&gt;Keep var1-var100;&lt;BR /&gt;&lt;BR /&gt;Use -- to keep variables that are side by side. All variables in between the two variables listed are kept.&lt;BR /&gt;&lt;BR /&gt;keep var1--middle_var;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The documentation details it better than I can, as usual:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/68089/HTML/default/viewer.htm#p0wphcpsfgx6o7n1sjtqzizp1n39.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/68089/HTML/default/viewer.htm#p0wphcpsfgx6o7n1sjtqzizp1n39.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jan 2016 03:31:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Option-to-only-keep-variables-referenced-in-program/m-p/241530#M55698</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-03T03:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Option to only keep variables referenced in program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Option-to-only-keep-variables-referenced-in-program/m-p/241582#M55705</link>
      <description>Create an VIEW ?</description>
      <pubDate>Mon, 04 Jan 2016 01:35:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Option-to-only-keep-variables-referenced-in-program/m-p/241582#M55705</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-01-04T01:35:23Z</dc:date>
    </item>
  </channel>
</rss>

