<?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: Use a list in a macro variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Use-a-list-in-a-macro-variable/m-p/140146#M28262</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what you're looking to do with the list. Can you provide and example of how you would like to use such a list?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Dec 2014 17:29:35 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2014-12-07T17:29:35Z</dc:date>
    <item>
      <title>Use a list in a macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-a-list-in-a-macro-variable/m-p/140145#M28261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two datasets, I would like to use a list of variables from one to pull more detailed information from the first.&amp;nbsp; An example of the code is attached, I would like to use the &amp;amp;list to pull any number of variables from the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Dec 2014 16:53:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-a-list-in-a-macro-variable/m-p/140145#M28261</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2014-12-07T16:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Use a list in a macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-a-list-in-a-macro-variable/m-p/140146#M28262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what you're looking to do with the list. Can you provide and example of how you would like to use such a list?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Dec 2014 17:29:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-a-list-in-a-macro-variable/m-p/140146#M28262</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-12-07T17:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Use a list in a macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-a-list-in-a-macro-variable/m-p/140147#M28263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a large dataset A and a small dataset B.&amp;nbsp; I want to get a list of ID's from B to pull all the history from A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I've found another step in the process but am still not sure how to use the list:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;do i=1 by 1 while (scan("&amp;amp;list.",i) ne '');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; list=scan("&amp;amp;list.",i);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;drop i;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Dec 2014 17:40:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-a-list-in-a-macro-variable/m-p/140147#M28263</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2014-12-07T17:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Use a list in a macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-a-list-in-a-macro-variable/m-p/140148#M28264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you basically simply want to accomplish a join, but using a list? i.e., if an id is in b, you want the corresponding record(s) from A?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Approximately how many IDs do you have in B?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Dec 2014 18:22:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-a-list-in-a-macro-variable/m-p/140148#M28264</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-12-07T18:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Use a list in a macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-a-list-in-a-macro-variable/m-p/140149#M28265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's it and I feel silly now over thinking it.&amp;nbsp; It's just a join, the number of IDs will vary.&amp;nbsp; I think I know what I'll have to do now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Dec 2014 18:28:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-a-list-in-a-macro-variable/m-p/140149#M28265</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2014-12-07T18:28:52Z</dc:date>
    </item>
  </channel>
</rss>

