<?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: Column Names -&amp;gt; Table in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Column-Names-gt-Table/m-p/33756#M8177</link>
    <description>Hi:&lt;BR /&gt;
  There are -many- previous forum postings on the use of the DICTIONARY information to perform tasks like this. In addition, you can search on Google for user group papers on the use of the DICTIONARY tables. Here's just one example.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc sql;&lt;BR /&gt;
** make table to use later;&lt;BR /&gt;
create table work.shoecols as&lt;BR /&gt;
select name&lt;BR /&gt;
  from dictionary.columns&lt;BR /&gt;
  where upcase(libname) = "SASHELP" and&lt;BR /&gt;
        upcase(memname) = "SHOES";&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
ods listing;&lt;BR /&gt;
proc print data=work.shoecols;&lt;BR /&gt;
  title 'after proc sql';&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Tue, 22 Dec 2009 17:04:22 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2009-12-22T17:04:22Z</dc:date>
    <item>
      <title>Column Names -&gt; Table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Column-Names-gt-Table/m-p/33755#M8176</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to get column names into a SAS table.  For example if my Table A has the following columns:&lt;BR /&gt;
&lt;BR /&gt;
T100   T200   T300   T400   T500&lt;BR /&gt;
&lt;BR /&gt;
I would like to create Table B, that contains only column names, i.e.:&lt;BR /&gt;
&lt;BR /&gt;
Columns&lt;BR /&gt;
T100&lt;BR /&gt;
T200&lt;BR /&gt;
T300&lt;BR /&gt;
T400&lt;BR /&gt;
T500 &lt;BR /&gt;
&lt;BR /&gt;
Thank you ahead of time for your help!&lt;BR /&gt;
Rich</description>
      <pubDate>Tue, 22 Dec 2009 16:24:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Column-Names-gt-Table/m-p/33755#M8176</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-12-22T16:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Column Names -&gt; Table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Column-Names-gt-Table/m-p/33756#M8177</link>
      <description>Hi:&lt;BR /&gt;
  There are -many- previous forum postings on the use of the DICTIONARY information to perform tasks like this. In addition, you can search on Google for user group papers on the use of the DICTIONARY tables. Here's just one example.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc sql;&lt;BR /&gt;
** make table to use later;&lt;BR /&gt;
create table work.shoecols as&lt;BR /&gt;
select name&lt;BR /&gt;
  from dictionary.columns&lt;BR /&gt;
  where upcase(libname) = "SASHELP" and&lt;BR /&gt;
        upcase(memname) = "SHOES";&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
ods listing;&lt;BR /&gt;
proc print data=work.shoecols;&lt;BR /&gt;
  title 'after proc sql';&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Tue, 22 Dec 2009 17:04:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Column-Names-gt-Table/m-p/33756#M8177</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-12-22T17:04:22Z</dc:date>
    </item>
  </channel>
</rss>

