<?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 how to reference a file for filter in the code in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-reference-a-file-for-filter-in-the-code/m-p/118786#M6214</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Guru's -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current code uses hard coded filters to produce the results.&lt;/P&gt;&lt;P&gt;I would like the hard coded filters to be replaced with a sas dataset.&lt;/P&gt;&lt;P&gt;Is there an good way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example: Current code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data campaign;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set campaign;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where campaing id in ('012345',10123456');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example: Future code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data campaign;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set campaign;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where campaing id in (&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;file reference here&lt;/STRONG&gt;&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2012 17:09:02 GMT</pubDate>
    <dc:creator>Rish</dc:creator>
    <dc:date>2012-09-11T17:09:02Z</dc:date>
    <item>
      <title>how to reference a file for filter in the code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-reference-a-file-for-filter-in-the-code/m-p/118786#M6214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Guru's -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current code uses hard coded filters to produce the results.&lt;/P&gt;&lt;P&gt;I would like the hard coded filters to be replaced with a sas dataset.&lt;/P&gt;&lt;P&gt;Is there an good way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example: Current code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data campaign;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set campaign;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where campaing id in ('012345',10123456');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example: Future code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data campaign;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set campaign;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where campaing id in (&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;file reference here&lt;/STRONG&gt;&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 17:09:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-reference-a-file-for-filter-in-the-code/m-p/118786#M6214</guid>
      <dc:creator>Rish</dc:creator>
      <dc:date>2012-09-11T17:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to reference a file for filter in the code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-reference-a-file-for-filter-in-the-code/m-p/118787#M6215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; create table want as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select a.* from campaign as a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where a.id in (select id from your-reference);&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 17:16:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-reference-a-file-for-filter-in-the-code/m-p/118787#M6215</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-09-11T17:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to reference a file for filter in the code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-reference-a-file-for-filter-in-the-code/m-p/118788#M6216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Linlin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway we can do it using sas code and not proc sql?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following are the reasons:&lt;/P&gt;&lt;P&gt;1) the table campaign has millions of records.&lt;/P&gt;&lt;P&gt;2) i am new to sas coding with little knowledge of sql commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 17:29:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-reference-a-file-for-filter-in-the-code/m-p/118788#M6216</guid>
      <dc:creator>Rish</dc:creator>
      <dc:date>2012-09-11T17:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to reference a file for filter in the code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-reference-a-file-for-filter-in-the-code/m-p/118789#M6217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use merge or hash.&lt;/P&gt;&lt;P&gt;example of using merge:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=data1;&lt;BR /&gt;by id;&lt;BR /&gt;proc sort data=data2;&lt;BR /&gt;by id;&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt; merge data1(in=a) data2(in=b);&lt;BR /&gt; by id;&lt;BR /&gt; if a and b;&lt;BR /&gt; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 17:41:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-reference-a-file-for-filter-in-the-code/m-p/118789#M6217</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-09-11T17:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to reference a file for filter in the code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-reference-a-file-for-filter-in-the-code/m-p/118790#M6218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First a warning.&amp;nbsp; If you actually ran your current code, your file would no longer contain millions of records.&amp;nbsp; You would have replaced it with a file that ONLY contained those records which met the condition in the where statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somehow I don't think you would want to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain a little more about what you are trying to accomplish, possibly with a small example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 17:46:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-reference-a-file-for-filter-in-the-code/m-p/118790#M6218</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-09-11T17:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to reference a file for filter in the code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-reference-a-file-for-filter-in-the-code/m-p/118791#M6219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Arthur -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have got some 7 different tables where the data is stored. Each table has millions of records. Note that there are different fields (unique id) for joining this 7 tables.&lt;/P&gt;&lt;P&gt;The data i want to extract is based on a file/dataset that will have approx say 1000 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my question is - I want to avoid running the data and storing in the work folder. and use the work folder to filter through my 1000 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data table1; set table1; run; &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;(want to avoid this step if possible - by filtering 1000 records i need)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;proc sort data=table1; by uniqid; run;&lt;/P&gt;&lt;P&gt;data file; set file; run;&lt;/P&gt;&lt;P&gt;proc sort data=file1; by uniqid; run;&lt;/P&gt;&lt;P&gt;Data combined;merge table1 (in=a) file (in=b); by uniqid; if a=b; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to repeat the above step for other 6 tables before i get my final population with required fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this clarifies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 18:01:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-reference-a-file-for-filter-in-the-code/m-p/118791#M6219</guid>
      <dc:creator>Rish</dc:creator>
      <dc:date>2012-09-11T18:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to reference a file for filter in the code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-reference-a-file-for-filter-in-the-code/m-p/118792#M6220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope .. not enough clarification.&amp;nbsp; Your example shows a couple of meaningless steps:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Data table1; set table1; run;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;data file; set file; run;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;What is the purpose of those sets of statements?&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;and, while we're asking, why are you sorting the data by uniqueid, but then selecting on another variable?&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;While I'm still not sure what you are asking, you might want to look into whether dataset views might do what you want.&amp;nbsp; see, e.g., &lt;A href="http://www2.sas.com/proceedings/sugi22/ADVTUTOR/PAPER36.PDF" title="http://www2.sas.com/proceedings/sugi22/ADVTUTOR/PAPER36.PDF"&gt;http://www2.sas.com/proceedings/sugi22/ADVTUTOR/PAPER36.PDF&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Again, though, a realistic example with data would help let everyone know what you are really trying to accomplish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 18:33:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-reference-a-file-for-filter-in-the-code/m-p/118792#M6220</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-09-11T18:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to reference a file for filter in the code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-reference-a-file-for-filter-in-the-code/m-p/118793#M6221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arthur - sorry if i was not clear. Lets try the below code.&lt;/P&gt;&lt;P&gt;I am running below code for my output. Note I am using this code 5 different times for my final output.&lt;/P&gt;&lt;P&gt;Any advise how to improve the code for better execution?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;This is a pseudo code:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data com_Nl ;&lt;BR /&gt; set com_mis.cust(where=(CUST_ID IN ('00203046', '00232425')));&lt;BR /&gt; cust_num=((compress(CUST_ID,"0123456789","k"))*1);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data com_nl&amp;nbsp; (keep= cust_id cust_num cus_cd current_position);&lt;BR /&gt; set com_nl;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data want_cus (keep=want_cus_cd cus_agency_cd);&lt;BR /&gt; set com_mis.want_cusestor;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sort data=com_nl;&lt;BR /&gt; by cus_cd;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sort data=want_cus;&lt;BR /&gt; by want_cus_cd;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data combined;&lt;BR /&gt; merge com_nl(in=a) want_cus (in=b rename=(want_cus_cd=cus_cd));&lt;BR /&gt; if a=b;&lt;BR /&gt; by cus_cd;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 19:47:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-reference-a-file-for-filter-in-the-code/m-p/118793#M6221</guid>
      <dc:creator>Rish</dc:creator>
      <dc:date>2012-09-11T19:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to reference a file for filter in the code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-reference-a-file-for-filter-in-the-code/m-p/118794#M6222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still think you want to look into views .. they may well be what you are seeking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardless, first consider your first two datasteps.&amp;nbsp; i.e.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;data com_Nl ;&lt;BR /&gt;set com_mis.cust(where=(CUST_ID IN ('00203046', '00232425')));&lt;BR /&gt;cust_num=((compress(CUST_ID,"0123456789","k"))*1);&lt;BR /&gt;run;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;data com_nl&amp;nbsp; (keep= cust_id cust_num cus_cd current_position);&lt;BR /&gt;set com_nl;&lt;BR /&gt;run;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Why two?&amp;nbsp; You could easily combine them as:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;data com_Nl &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;(keep= cust_id cust_num cus_cd current_position)&lt;/SPAN&gt; ;&lt;BR /&gt;&amp;nbsp; set com_mis.cust(where=(CUST_ID IN ('00203046', '00232425')));&lt;BR /&gt;&amp;nbsp; cust_num=((compress(CUST_ID,"0123456789","k"))*1);&lt;BR /&gt;run;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Similarly, you can create any number of sas data files in just one datastep.&amp;nbsp; Thus, instead of using a where statement, you could combine all of your calls in one datastep with if statements. Something like:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;data&amp;nbsp; com_nl (keep= cust_id cust_num cus_cd current_position) &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; com_whatever&amp;nbsp; (keep= cust_id cust_num cus_cd current_position) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; if &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;CUST_ID IN ('00203046', '00232425'&lt;/SPAN&gt;) then output &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;com_nl&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; else if &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;CUST_ID IN (whatever(replace with values)', '&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;whateverelse(replace with values&lt;/SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;) then output &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;com_whatever&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;That way, all seven could be combined as one.&amp;nbsp; And, if you make it a view, you only have to run it once.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 22:49:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-reference-a-file-for-filter-in-the-code/m-p/118794#M6222</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-09-11T22:49:12Z</dc:date>
    </item>
  </channel>
</rss>

