<?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 certain criteria for a variable prior to producing summary stats in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Drop-certain-criteria-for-a-variable-prior-to-producing-summary/m-p/357825#M23562</link>
    <description>&lt;P&gt;Folks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could I extend said code to only look at certain datasets within the quoted libs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something such as;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;

set sashelp.vtable 
(where=(libname in ('P2005','P2006','P2007','P2008','P2009','P2010','P2011','P2013','P2014','P2015')));
(where=(memname in ('ACCOUNTS','PERSONAL','TRADE'))); 

call execute(cats('proc freq data=', libname, '.', memname, ';'));

call execute(cats('title "', libname, '.', memname, '";'));

call execute ('tables id / missing; format id $mygroup.; run;');

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 11 May 2017 11:18:22 GMT</pubDate>
    <dc:creator>Sean_OConnor</dc:creator>
    <dc:date>2017-05-11T11:18:22Z</dc:date>
    <item>
      <title>Drop certain criteria for a variable prior to producing summary stats</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Drop-certain-criteria-for-a-variable-prior-to-producing-summary/m-p/354377#M23356</link>
      <description>&lt;P&gt;Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've a query which perhaps people could shed some light on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm utilsing the following piece of code to to get a count of the number of observations from each of my datasets, for a number of different libs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql; 
create table data as
	select libname, memname, nvar from dictionary.tables
where libname in ('BUS2011','BUS2012','BUS2013','BUS2014','BUS2015');quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, within these datasets there is a particular variable I would like to get a count of. Let us call it 'ID'. ID is common in all datasets, across all years.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Within ID there are two indicators to whether the variable is blank. This is either 'XXXX' or 'NONE'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I would like to do is tell SAS if ID has either value to delete it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From here I would only be left with values with an actual ID. I would then like a count of all of these observations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand how to this in a datastep, but the fact I'm dealing with 5 different libs, with 20 datasets in each one, would mean it would take some time to carry this out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thus, I've turned to SQL, which I'm sure could speed up the process, but I'm just not too sure how to carry this out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 09:46:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Drop-certain-criteria-for-a-variable-prior-to-producing-summary/m-p/354377#M23356</guid>
      <dc:creator>Sean_OConnor</dc:creator>
      <dc:date>2017-04-28T09:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Drop certain criteria for a variable prior to producing summary stats</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Drop-certain-criteria-for-a-variable-prior-to-producing-summary/m-p/354386#M23357</link>
      <description>&lt;P&gt;SQL is unlikely to speed things up, if anything on large datasets, it may well slow things down. &amp;nbsp;As for your question, the simplest method is to just generate the required code:&lt;/P&gt;
&lt;PRE&gt;data _null_;
/* Expand this as you need with libnames, it gets a list of all datasets in */
/* the given libnames */

  set sashelp.vtable (where=(libname in "BUS2011","BUS2012"));

/* Using this list create a datastep for each dataset in those libnames */
/* Note I am updating them to v_&amp;lt;libname&amp;gt; - as I assume you don't want */
/* to overwrite */

  call execute('data v_'||catx('.',libname,memname)||'; set '||catx('.',libname,memname),'; where id not in ('XXXX','NONE'); run;');
run;   &lt;/PRE&gt;
&lt;P&gt;So for every dataset in th egiven libnames this datastep will generate a datastep which looks like:&lt;/P&gt;
&lt;P&gt;data v_&amp;lt;libname&amp;gt;.&amp;lt;dataset&amp;gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; set &amp;lt;libname&amp;gt;.&amp;lt;dataset&amp;gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; where id not in ('XXXX','NONE');&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So in effect copy the dataset and dropping those records. &amp;nbsp;You can then pull out the num obs from the created datasets. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 10:09:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Drop-certain-criteria-for-a-variable-prior-to-producing-summary/m-p/354386#M23357</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-04-28T10:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Drop certain criteria for a variable prior to producing summary stats</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Drop-certain-criteria-for-a-variable-prior-to-producing-summary/m-p/354397#M23358</link>
      <description>&lt;P&gt;RW9,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for this, but I'm a bit confused by the required code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql; 
create table vtable as
	select libname, memname, nvar from dictionary.tables
	
where libname in ('BUS2011');quit;


data _null_;
/* Expand this as you need with libnames, it gets a list of all datasets in */
/* the given libnames */

  set sashelp.vtable (where=(libname in ('BUS2011')));

/* Using this list create a datastep for each dataset in those libnames */
/* Note I am updating them to v_&amp;lt;libname&amp;gt; - as I assume you don't want */
/* to overwrite */

 call execute('data v_'||catx('.',libname,memname)||'; set '||catx('.',libname,memname),'; where id not in ('XXXX','NONE'); run;');
run; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm wondering is there a need for the quottation marks in the line with call excute.?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I attempt to run it I get the following errors;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: Invalid hexadecimal constant string '; where id not in ('X.
ERROR 388-185: Expecting an arithmetic operator.

ERROR 76-322: Syntax error, statement will be ignored.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 10:29:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Drop-certain-criteria-for-a-variable-prior-to-producing-summary/m-p/354397#M23358</guid>
      <dc:creator>Sean_OConnor</dc:creator>
      <dc:date>2017-04-28T10:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Drop certain criteria for a variable prior to producing summary stats</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Drop-certain-criteria-for-a-variable-prior-to-producing-summary/m-p/354423#M23359</link>
      <description>&lt;P&gt;Firstly, you do not need the proc sql part. &amp;nbsp;Next, yes quotes are needed. &amp;nbsp;Call execute() function requires a string, which is injected into the Base SAS compiler after the datastep stops executing. &amp;nbsp;This string therefore needs to resolve to valid SAS sysntax.&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; _null_&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="token keyword"&gt;set&lt;/SPAN&gt; sashelp&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;vtable &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;where&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;libname&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;in&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'BUS2011'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
  call &lt;SPAN class="token keyword"&gt;execute&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'data v_'&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;||&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;catx&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'.'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;libname&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;memname&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;||&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'; &lt;BR /&gt;                  set '&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;||&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;catx&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'.'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;libname&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;memname&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'; &lt;BR /&gt;                  where id not in ("&lt;/SPAN&gt;XXXX"&lt;SPAN class="token string"&gt;,"&lt;/SPAN&gt;NONE"&lt;SPAN class="token string"&gt;); &lt;BR /&gt;                run;'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; &lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;You will note I put double quotes around the in() now, that is why you were getting the error (if I had some test data as a datastep, required output, then I would be able to test it directly, but I don't). &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 11:27:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Drop-certain-criteria-for-a-variable-prior-to-producing-summary/m-p/354423#M23359</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-04-28T11:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Drop certain criteria for a variable prior to producing summary stats</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Drop-certain-criteria-for-a-variable-prior-to-producing-summary/m-p/354424#M23360</link>
      <description>&lt;P&gt;Looking at these features:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;You already have a table with all the data sets that need to be processed&lt;/LI&gt;
&lt;LI&gt;You will need to go through each data set to count the valid ID values&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Why not get a little extra information? &amp;nbsp;Construct a program that looks like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc format;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;value $mygroup ' '='Blank &amp;nbsp;'XXXX', 'NONE' = 'Invalid' other='Valid';&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc freq data=memname.libname;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;title "&lt;/FONT&gt;memname&lt;FONT face="courier new,courier"&gt;.libname";&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;tables &lt;/FONT&gt;id / missing&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;format id $mygroup.;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The trick is getting SAS to construct the dozens of PROC FREQ steps. &amp;nbsp;So hard-code the PROC FORMAT, then:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;data _null_;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;set data;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;call execute(cats('proc freq data=', &lt;/FONT&gt;libname&lt;FONT face="courier new,courier"&gt;, '.', memname, ';'));&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;call execute(cats('title "', libname, '.', memname, '";'));&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;call execute ('tables id / missing; format id $mygroup.; run;');&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 11:31:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Drop-certain-criteria-for-a-variable-prior-to-producing-summary/m-p/354424#M23360</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-04-28T11:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Drop certain criteria for a variable prior to producing summary stats</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Drop-certain-criteria-for-a-variable-prior-to-producing-summary/m-p/357825#M23562</link>
      <description>&lt;P&gt;Folks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could I extend said code to only look at certain datasets within the quoted libs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something such as;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;

set sashelp.vtable 
(where=(libname in ('P2005','P2006','P2007','P2008','P2009','P2010','P2011','P2013','P2014','P2015')));
(where=(memname in ('ACCOUNTS','PERSONAL','TRADE'))); 

call execute(cats('proc freq data=', libname, '.', memname, ';'));

call execute(cats('title "', libname, '.', memname, '";'));

call execute ('tables id / missing; format id $mygroup.; run;');

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 May 2017 11:18:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Drop-certain-criteria-for-a-variable-prior-to-producing-summary/m-p/357825#M23562</guid>
      <dc:creator>Sean_OConnor</dc:creator>
      <dc:date>2017-05-11T11:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Drop certain criteria for a variable prior to producing summary stats</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Drop-certain-criteria-for-a-variable-prior-to-producing-summary/m-p/357834#M23564</link>
      <description>&lt;P&gt;Yes, but there would still be only one WHERE clause used. &amp;nbsp;One possibility:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token keyword"&gt;set&lt;/SPAN&gt; sashelp&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;vtable 
&lt;STRONG&gt;&lt;FONT color="#008000"&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN class="token statement"&gt;where&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;FONT color="#800000"&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN class="token statement"&gt;libname&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;in&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'P2005'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'P2006'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'P2007'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'P2008'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'P2009'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'P2010'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'P2011'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'P2013'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'P2014'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'P2015'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="token punctuation"&gt; and &lt;/SPAN&gt;memname &lt;SPAN class="token operator"&gt;in&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'ACCOUNTS'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'PERSONAL'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'TRADE'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;STRONG&gt;&lt;FONT color="#800000"&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="#008000"&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 11:37:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Drop-certain-criteria-for-a-variable-prior-to-producing-summary/m-p/357834#M23564</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-05-11T11:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Drop certain criteria for a variable prior to producing summary stats</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Drop-certain-criteria-for-a-variable-prior-to-producing-summary/m-p/357836#M23565</link>
      <description>&lt;P&gt;Yes, as you have done, but your where is wrong:&lt;/P&gt;
&lt;PRE&gt;(where=(libname in ('P2005','P2006','P2007','P2008','P2009','P2010','P2011','P2013','P2014','P2015') and memname in ('ACCOUNTS','PERSONAL','TRADE'))); &lt;/PRE&gt;
&lt;P&gt;If you want only certain datasets within the libraries, then you would need both levels:&lt;/P&gt;
&lt;PRE&gt;(where=(catx('.',libname,memname) in ('P2005.ACCOUNTS')));&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 May 2017 11:38:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Drop-certain-criteria-for-a-variable-prior-to-producing-summary/m-p/357836#M23565</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-05-11T11:38:05Z</dc:date>
    </item>
  </channel>
</rss>

