<?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: Sashelp.vcolumn vs dictionary.columns in PROC SQL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sashelp-vcolumn-vs-dictionary-columns-in-PROC-SQL/m-p/252812#M48056</link>
    <description>&lt;P&gt;Not I am aware of, except sashelp.vcolumn can be used anywhere (data step, proc sql and other procs), while dictionary.columns is only valid in Proc SQL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2016 20:34:11 GMT</pubDate>
    <dc:creator>Haikuo</dc:creator>
    <dc:date>2016-02-26T20:34:11Z</dc:date>
    <item>
      <title>Sashelp.vcolumn vs dictionary.columns in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sashelp-vcolumn-vs-dictionary-columns-in-PROC-SQL/m-p/252808#M48053</link>
      <description>&lt;P&gt;When retrieveing metadata from sas data set I tend to use dictionary.columns and others. Are there any differences between&amp;nbsp;sashelp.vcolumn and dictionary.columns in PROC SQL. I am not aware if sashelp.column has additional functionality than PROC SQL counter part.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 20:19:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sashelp-vcolumn-vs-dictionary-columns-in-PROC-SQL/m-p/252808#M48053</guid>
      <dc:creator>SAS_inquisitive</dc:creator>
      <dc:date>2016-02-26T20:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sashelp.vcolumn vs dictionary.columns in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sashelp-vcolumn-vs-dictionary-columns-in-PROC-SQL/m-p/252811#M48055</link>
      <description>&lt;P&gt;SASHELP table are views of the Dictionary Tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There used to be the argument that hitting the Dictionary tables was faster, but I don't think that applies anymore.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 20:33:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sashelp-vcolumn-vs-dictionary-columns-in-PROC-SQL/m-p/252811#M48055</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-26T20:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sashelp.vcolumn vs dictionary.columns in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sashelp-vcolumn-vs-dictionary-columns-in-PROC-SQL/m-p/252812#M48056</link>
      <description>&lt;P&gt;Not I am aware of, except sashelp.vcolumn can be used anywhere (data step, proc sql and other procs), while dictionary.columns is only valid in Proc SQL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 20:34:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sashelp-vcolumn-vs-dictionary-columns-in-PROC-SQL/m-p/252812#M48056</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2016-02-26T20:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sashelp.vcolumn vs dictionary.columns in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sashelp-vcolumn-vs-dictionary-columns-in-PROC-SQL/m-p/252830#M48059</link>
      <description>&lt;P&gt;Reeza, sometimes I have the impression that somehow the access to the dictionary tables from SQL is faster when a lot of libraries with a lot of datasets are assigned and SQL profits from optimization of a where clause.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 21:31:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sashelp-vcolumn-vs-dictionary-columns-in-PROC-SQL/m-p/252830#M48059</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-02-26T21:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sashelp.vcolumn vs dictionary.columns in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sashelp-vcolumn-vs-dictionary-columns-in-PROC-SQL/m-p/252870#M48077</link>
      <description>&lt;P&gt;I second&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser﻿&lt;/a&gt;'s comments. This is particularly true if you work in a SAS environment where all your libraries are defined in SAS metadata and so are available in every SAS job. Also if your libraries reference external data sources it can be even slower.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've found that if you want just the columns for a single table then PROC DATASETS is far quicker.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 00:04:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sashelp-vcolumn-vs-dictionary-columns-in-PROC-SQL/m-p/252870#M48077</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-02-27T00:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sashelp.vcolumn vs dictionary.columns in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sashelp-vcolumn-vs-dictionary-columns-in-PROC-SQL/m-p/252949#M48097</link>
      <description>&lt;P&gt;Besides the speed issue, one can and should determine the content:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;312 proc sql ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;313 describe view sashelp.vcolumn ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;NOTE: SQL view SASHELP.VCOLUMN is defined as:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;select *&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; from DICTIONARY.COLUMNS;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;314 quit ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; real time 0.14 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; cpu time 0.00 seconds&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 17:48:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sashelp-vcolumn-vs-dictionary-columns-in-PROC-SQL/m-p/252949#M48097</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2016-02-27T17:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sashelp.vcolumn vs dictionary.columns in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sashelp-vcolumn-vs-dictionary-columns-in-PROC-SQL/m-p/388883#M93252</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;: I think it is safe to say that dictionary.columns is still more efficient!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just ran PROC SQL using the _method option and discovered that when one uses sashelp.vcolumn with a where clause, the SQL optimizer replaces it with dictionary.columns&lt;/P&gt;
&lt;PRE&gt; 62         proc sql _method _tree;
 63           create table test as
 64             select *
 65               from sashelp.vcolumn
 66                 where libname="SASHELP"
 67           ;
 
 NOTE: SQL execution methods chosen are:
 
       sqxcrta
           sqxsob( DICTIONARY.COLUMNS )
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 17:02:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sashelp-vcolumn-vs-dictionary-columns-in-PROC-SQL/m-p/388883#M93252</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-08-17T17:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sashelp.vcolumn vs dictionary.columns in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sashelp-vcolumn-vs-dictionary-columns-in-PROC-SQL/m-p/388886#M93253</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13711"&gt;@art297&lt;/a&gt;&amp;nbsp;Yes, I was wrong here :).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are definitely uses where using PROC CONTENTS/DATASETS is more appropriate and where dictionary tables are more helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll still likely reference the SASHELP tables though, mostly because beginners (and myself) can navigate to it and view it as a table in the library which makes it easier to use.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 17:05:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sashelp-vcolumn-vs-dictionary-columns-in-PROC-SQL/m-p/388886#M93253</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-17T17:05:08Z</dc:date>
    </item>
  </channel>
</rss>

