<?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: proc sql dictionary.columns in data step in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-dictionary-columns-in-data-step/m-p/624455#M183966</link>
    <description>&lt;P&gt;Dictionary tables are available from PROC SQL only.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data step equivalent is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
   set sashelp.vcolumn;
   where upcase(libname)='WORK';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 13 Feb 2020 12:08:20 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2020-02-13T12:08:20Z</dc:date>
    <item>
      <title>proc sql dictionary.columns in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-dictionary-columns-in-data-step/m-p/624454#M183965</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;what is the equivalent code&amp;nbsp; in data step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PROC SQL;&lt;BR /&gt;create table test as
 SELECT *
 FROM DICTIONARY.Columns
 WHERE UPCASE(LIBNAME)=”WORK”;
QUIT;&lt;/PRE&gt;&lt;P&gt;if I write below code in data step, it is giving library dictionary has more than 8 character length&amp;nbsp; ERROR.&lt;/P&gt;&lt;PRE&gt;data test;
set dictionary.columns;
where UPCASE(LIBNAME_="work";
run;&lt;/PRE&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;SS&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 12:06:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-dictionary-columns-in-data-step/m-p/624454#M183965</guid>
      <dc:creator>sathya66</dc:creator>
      <dc:date>2020-02-13T12:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql dictionary.columns in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-dictionary-columns-in-data-step/m-p/624455#M183966</link>
      <description>&lt;P&gt;Dictionary tables are available from PROC SQL only.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data step equivalent is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
   set sashelp.vcolumn;
   where upcase(libname)='WORK';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Feb 2020 12:08:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-dictionary-columns-in-data-step/m-p/624455#M183966</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-02-13T12:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql dictionary.columns in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-dictionary-columns-in-data-step/m-p/624456#M183967</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/93352"&gt;@sathya66&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can access the Dictionary tables in a data step through their corresponding SASHELP views:&lt;/P&gt;
&lt;P&gt;Examples:&lt;/P&gt;
&lt;P&gt;Dictionary.tables &amp;lt;=&amp;gt; Sashelp.Vtable&lt;/P&gt;
&lt;P&gt;Dictionary.columns &amp;lt;=&amp;gt; Sashelp.Vcolumn&lt;/P&gt;
&lt;P&gt;Dictionary.titles &amp;lt;=&amp;gt; Sashelp.Vtitle&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 12:11:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-dictionary-columns-in-data-step/m-p/624456#M183967</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-02-13T12:11:51Z</dc:date>
    </item>
  </channel>
</rss>

