<?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: select from a list stored in a macro in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/select-from-a-list-stored-in-a-macro/m-p/556696#M9877</link>
    <description>&lt;P&gt;try the in operator&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
set WORK.table1;
where id in (&amp;amp;myid);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2019 08:46:44 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2019-05-07T08:46:44Z</dc:date>
    <item>
      <title>select from a list stored in a macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/select-from-a-list-stored-in-a-macro/m-p/556690#M9874</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I'm creating the following program:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;data test;
set WORK.table1;
where id like &amp;amp;myid;
run;&lt;/PRE&gt;&lt;P&gt;and the contents of the %let myid variables are like this :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let myid =
11544,
1244,
12477
;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Ho to make this work ? ( select where id =&amp;nbsp;&lt;CODE class=" language-sas"&gt;11544, 1244 and 12477) ?&amp;nbsp;&lt;/CODE&gt; I mean selecting values from a list in a macro ? in the standard sas and the proc SQL ?&lt;BR /&gt;&lt;BR /&gt;Thank you for your response.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 08:24:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/select-from-a-list-stored-in-a-macro/m-p/556690#M9874</guid>
      <dc:creator>SIgnificatif</dc:creator>
      <dc:date>2019-05-07T08:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: select from a list stored in a macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/select-from-a-list-stored-in-a-macro/m-p/556696#M9877</link>
      <description>&lt;P&gt;try the in operator&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
set WORK.table1;
where id in (&amp;amp;myid);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 08:46:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/select-from-a-list-stored-in-a-macro/m-p/556696#M9877</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-05-07T08:46:44Z</dc:date>
    </item>
  </channel>
</rss>

