<?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 create a prompt to select multiple items in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/create-a-prompt-to-select-multiple-items/m-p/452707#M114274</link>
    <description>&lt;P&gt;I'm have a code as show below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select *
from table
where ID in %bquote('&amp;amp;ID');
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and I want it to do the equvilant of:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select *
from table
where ID in ('1','2');
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;however, no matter how hard I try, I only get one ID with the prompt..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what could be the issue?&lt;/P&gt;</description>
    <pubDate>Tue, 10 Apr 2018 04:22:23 GMT</pubDate>
    <dc:creator>mrdlau</dc:creator>
    <dc:date>2018-04-10T04:22:23Z</dc:date>
    <item>
      <title>create a prompt to select multiple items</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-a-prompt-to-select-multiple-items/m-p/452707#M114274</link>
      <description>&lt;P&gt;I'm have a code as show below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select *
from table
where ID in %bquote('&amp;amp;ID');
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and I want it to do the equvilant of:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select *
from table
where ID in ('1','2');
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;however, no matter how hard I try, I only get one ID with the prompt..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what could be the issue?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 04:22:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-a-prompt-to-select-multiple-items/m-p/452707#M114274</guid>
      <dc:creator>mrdlau</dc:creator>
      <dc:date>2018-04-10T04:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: create a prompt to select multiple items</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-a-prompt-to-select-multiple-items/m-p/452708#M114275</link>
      <description>&lt;P&gt;May i know how your macr var id was created? can you provide a sample plz?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let n='Alfred','Barbara';

proc sql;
select *
from sashelp.class
where name in (&amp;amp;n);
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;the above illustration works without the need of macro quoting, so more info from you would be helpful. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 04:36:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-a-prompt-to-select-multiple-items/m-p/452708#M114275</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-04-10T04:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: create a prompt to select multiple items</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-a-prompt-to-select-multiple-items/m-p/452794#M114315</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let n=Alfred Barbara;

proc sql;
select *
from sashelp.class
where indexw(symget('n'),strip(name));
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Apr 2018 13:02:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-a-prompt-to-select-multiple-items/m-p/452794#M114315</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-04-10T13:02:21Z</dc:date>
    </item>
  </channel>
</rss>

