<?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: How to  parameterize a &amp;quot;Where statment&amp;quot; in a data set? ( SAS EG ) in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-parameterize-a-quot-Where-statment-quot-in-a-data-set-SAS/m-p/535266#M6439</link>
    <description>that's exaclty what i want !&lt;BR /&gt;&lt;BR /&gt;Obviously i createad a analogous problem, but that should do it!&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 13 Feb 2019 16:29:05 GMT</pubDate>
    <dc:creator>victorlu</dc:creator>
    <dc:date>2019-02-13T16:29:05Z</dc:date>
    <item>
      <title>How to  parameterize a "Where statment" in a data set? ( SAS EG )</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-parameterize-a-quot-Where-statment-quot-in-a-data-set-SAS/m-p/535251#M6432</link>
      <description>&lt;P&gt;Let's say that I want to :&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;DATA data_name;&lt;/P&gt;&lt;P&gt;SET set_name;&lt;/P&gt;&lt;P&gt;WHERE CLIENTS IN ("SECTOR_1","SECTOR_2","SECTOR_3");&lt;/P&gt;&lt;P&gt;Run;&lt;BR /&gt;&lt;BR /&gt;How can I&amp;nbsp;parameterize&amp;nbsp;("SECTOR_1","SECTOR_2","SECTOR_3")?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I would like to sometimes run it just for SECTOR_1 AND SECTOR_2, and sometimes just SECTOR_3, for example.&lt;BR /&gt;Is there a way to create a macrovariable with the condition? "CLIENTS IN MACROVARIABLE"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 16:10:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-parameterize-a-quot-Where-statment-quot-in-a-data-set-SAS/m-p/535251#M6432</guid>
      <dc:creator>victorlu</dc:creator>
      <dc:date>2019-02-13T16:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to  parameterize a "Where statment" in a data set? ( SAS EG )</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-parameterize-a-quot-Where-statment-quot-in-a-data-set-SAS/m-p/535255#M6433</link>
      <description>&lt;P&gt;Create a macro variable with the list of items you want to select.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let selection = "SECTOR_1", "SECTOR_2";

data want;
set have;

where clients in (&amp;amp;selection.);

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But I suspect this isn't actually what you want, so if that's true, you need to provide more details on what you do want.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 16:14:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-parameterize-a-quot-Where-statment-quot-in-a-data-set-SAS/m-p/535255#M6433</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-13T16:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to  parameterize a "Where statment" in a data set? ( SAS EG )</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-parameterize-a-quot-Where-statment-quot-in-a-data-set-SAS/m-p/535263#M6437</link>
      <description>&lt;P&gt;Are you actually replacing the data set DATA_NAME, or what that&amp;nbsp; may represent, multiple times? That likely would not be needed as you can use a where statement in many procedures and a data set option where in others.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 16:25:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-parameterize-a-quot-Where-statment-quot-in-a-data-set-SAS/m-p/535263#M6437</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-02-13T16:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to  parameterize a "Where statment" in a data set? ( SAS EG )</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-parameterize-a-quot-Where-statment-quot-in-a-data-set-SAS/m-p/535266#M6439</link>
      <description>that's exaclty what i want !&lt;BR /&gt;&lt;BR /&gt;Obviously i createad a analogous problem, but that should do it!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Feb 2019 16:29:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-parameterize-a-quot-Where-statment-quot-in-a-data-set-SAS/m-p/535266#M6439</guid>
      <dc:creator>victorlu</dc:creator>
      <dc:date>2019-02-13T16:29:05Z</dc:date>
    </item>
  </channel>
</rss>

