<?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: Macro variable with multiple values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-with-multiple-values/m-p/606590#M176162</link>
    <description>&lt;P&gt;What is your objective? To write queries of these tables or something else? What database are you accessing?&lt;/P&gt;</description>
    <pubDate>Fri, 22 Nov 2019 22:12:47 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2019-11-22T22:12:47Z</dc:date>
    <item>
      <title>Macro variable with multiple values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-with-multiple-values/m-p/606587#M176159</link>
      <description>I was able to get access to a database but it contains 276 separate tables. In order to see what variables are in each table, I can use PROC CONTENTS to get a list of said variables but it’s too laborious to write a PROC CONTENTS statement for each table. Is it possible to create a macro with a macro variable called TABLE in order to call the name of each individual table from a list? Any assistance is appreciated. Thanks.</description>
      <pubDate>Fri, 22 Nov 2019 21:56:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variable-with-multiple-values/m-p/606587#M176159</guid>
      <dc:creator>greg6363</dc:creator>
      <dc:date>2019-11-22T21:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Macro variable with multiple values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-with-multiple-values/m-p/606588#M176160</link>
      <description>&lt;P&gt;No macros needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Issue the proper LIBNAME statement to connect to this database. Then find the view named SASHELP.VCOLUMN and look at that. All the information about the variables and the tables in this database is in there.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 22:00:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variable-with-multiple-values/m-p/606588#M176160</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-22T22:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Macro variable with multiple values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-with-multiple-values/m-p/606590#M176162</link>
      <description>&lt;P&gt;What is your objective? To write queries of these tables or something else? What database are you accessing?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 22:12:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variable-with-multiple-values/m-p/606590#M176162</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-11-22T22:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Macro variable with multiple values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-with-multiple-values/m-p/606614#M176174</link>
      <description>PROC  CONTENTS contains a shortcut for doing exactly what you want:&lt;BR /&gt;&lt;BR /&gt;proc contents data=libname._all_ ;&lt;BR /&gt;run;</description>
      <pubDate>Fri, 22 Nov 2019 23:55:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variable-with-multiple-values/m-p/606614#M176174</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-11-22T23:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Macro variable with multiple values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-with-multiple-values/m-p/606666#M176193</link>
      <description>I thought you could only use the _all_ in a PUT statement. Let me give it a try. Thanks.</description>
      <pubDate>Sat, 23 Nov 2019 06:08:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variable-with-multiple-values/m-p/606666#M176193</guid>
      <dc:creator>greg6363</dc:creator>
      <dc:date>2019-11-23T06:08:37Z</dc:date>
    </item>
  </channel>
</rss>

