<?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: Experts: how to efficiently use the statement of  ' if  a in ( , , , , )' in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Experts-how-to-efficiently-use-the-statement-of-if-a-in/m-p/69688#M20042</link>
    <description>Thank you very much. I will try that.</description>
    <pubDate>Sun, 06 Sep 2009 14:48:15 GMT</pubDate>
    <dc:creator>tulip</dc:creator>
    <dc:date>2009-09-06T14:48:15Z</dc:date>
    <item>
      <title>Experts: how to efficiently use the statement of  ' if  a in ( , , , , )'</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Experts-how-to-efficiently-use-the-statement-of-if-a-in/m-p/69685#M20039</link>
      <description>Experts:&lt;BR /&gt;
&lt;BR /&gt;
I have a list of  200+values in ( , , , ,). If  I list them all, it is too much work especially, when I have to use the same statement several times. &lt;BR /&gt;
&lt;BR /&gt;
Please advise. Thank you very much.

Message was edited by: tulip</description>
      <pubDate>Sun, 06 Sep 2009 04:42:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Experts-how-to-efficiently-use-the-statement-of-if-a-in/m-p/69685#M20039</guid>
      <dc:creator>tulip</dc:creator>
      <dc:date>2009-09-06T04:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Experts: how to efficiently use the statement of  ' if  a in ( , , , , )'</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Experts-how-to-efficiently-use-the-statement-of-if-a-in/m-p/69686#M20040</link>
      <description>How/where is the list stored?  If the list is in a SAS dataset, you can generate SAS code using PROC SQL and build a set of SAS macro variables.  Then use those macro variables within a SAS macro to generate other code.&lt;BR /&gt;
&lt;BR /&gt;
Another technique is referenced in the technical paper below, found at the SAS support website using a Google advanced search argument.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
A Sample Macro for Creating a List on the Fly&lt;BR /&gt;
Debbie Miller, National Park Service, Denver, CO&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/030-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/030-30.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Using the Magical Keyword "INTO:" in PROC SQL&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi27/p071-27.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi27/p071-27.pdf&lt;/A&gt;</description>
      <pubDate>Sun, 06 Sep 2009 14:31:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Experts-how-to-efficiently-use-the-statement-of-if-a-in/m-p/69686#M20040</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-09-06T14:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Experts: how to efficiently use the statement of  ' if  a in ( , , , , )'</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Experts-how-to-efficiently-use-the-statement-of-if-a-in/m-p/69687#M20041</link>
      <description>Also consider an alternative which would be using a PROC FORMAT and a DATA step PUT function to do look-ups or for finding match conditions against your list.  With such a large list of values, you will likely find the performance to be better using PUT function.  And, a DATA step MERGE (or PROC SQL JOIN) to match values against your list may also be a suitable.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sun, 06 Sep 2009 14:43:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Experts-how-to-efficiently-use-the-statement-of-if-a-in/m-p/69687#M20041</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-09-06T14:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Experts: how to efficiently use the statement of  ' if  a in ( , , , , )'</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Experts-how-to-efficiently-use-the-statement-of-if-a-in/m-p/69688#M20042</link>
      <description>Thank you very much. I will try that.</description>
      <pubDate>Sun, 06 Sep 2009 14:48:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Experts-how-to-efficiently-use-the-statement-of-if-a-in/m-p/69688#M20042</guid>
      <dc:creator>tulip</dc:creator>
      <dc:date>2009-09-06T14:48:15Z</dc:date>
    </item>
  </channel>
</rss>

