<?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: BASE SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/BASE-SAS/m-p/292886#M60870</link>
    <description>How long is long? What's your application? &lt;BR /&gt;No of tables/columns can affect performance as well as libname engine, options and i/o, network constraints.</description>
    <pubDate>Sat, 20 Aug 2016 07:27:30 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2016-08-20T07:27:30Z</dc:date>
    <item>
      <title>BASE SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BASE-SAS/m-p/289611#M59822</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any easy way to find&amp;nbsp;where the list of variables present&amp;nbsp;in the libarary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example :&lt;/P&gt;&lt;P&gt;I have list of&amp;nbsp;variables&amp;nbsp;ABC , BDC , XYZ...So on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know which table contains&amp;nbsp;these fields in library,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 18:07:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BASE-SAS/m-p/289611#M59822</guid>
      <dc:creator>sdixit</dc:creator>
      <dc:date>2016-08-04T18:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: BASE SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BASE-SAS/m-p/289615#M59824</link>
      <description>&lt;P&gt;Look at Dictionary.Column&lt;/P&gt;
&lt;P&gt;or sashelp.vcolumn&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They're the same table.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 18:24:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BASE-SAS/m-p/289615#M59824</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-04T18:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: BASE SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BASE-SAS/m-p/289622#M59825</link>
      <description>&lt;P&gt;There are several ways to do this. &amp;nbsp;One way is to &lt;A href="http://analytics.ncsu.edu/sesug/2000/p-304.pdf" target="_self"&gt;use SASHELP dictionary views.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, the following code finds all data sets in the SASHELP library that contain a numeric variable named "date" or "name":&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data FindVars;
set sashelp.vcolumn;
if libname="SASHELP" and Type="num" and 
   upcase(name) in ("NAME" "DATE");
run;
proc print; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 18:37:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BASE-SAS/m-p/289622#M59825</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-08-04T18:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: BASE SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BASE-SAS/m-p/289623#M59826</link>
      <description>&lt;P&gt;Just to add a little context, since Reeza has already pointed you in the right direction:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname mylib '/path/to/some/folder';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;select memname, name from dictionary.columns where libname='MYLIB' and upcase(name) in ('ABC', 'XYZ');&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Within dictionary.columns, the LIBNAME values are stored in uppercase, but the variable NAME values can be mixed case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other fields related to each variable are also contained in dictionary.columns and can be extracted similarly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;***** EDITED:&amp;nbsp; Nothing wrong with Rick's suggestion either ... we were evidently typing at the same time.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 18:43:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BASE-SAS/m-p/289623#M59826</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-08-04T18:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: BASE SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BASE-SAS/m-p/289731#M59856</link>
      <description>&lt;P&gt;Just an addendum for clarification:&lt;/P&gt;
&lt;P&gt;dictionary.columns is available within proc sql.&lt;/P&gt;
&lt;P&gt;sashelp.vcolumn is available outside of proc sql (for data and proc steps) and is in fact a view to dictionary.columns&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both are built/executed dynamically when they are used.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 06:49:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BASE-SAS/m-p/289731#M59856</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-05T06:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: BASE SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BASE-SAS/m-p/292817#M60845</link>
      <description>&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="1"&gt;&lt;STRONG&gt;Hi,&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;I am trying to find PrinBal variable belongs to which table in MTGAE libaray but It is taking long time to run.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;Can you help why?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;Proc sql;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;SELECT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt; *&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;FROM&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt; DICTIONARY.COLUMNS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;WHERE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt; UPCASE(LIBNAME) &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;in&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt; (&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;"MTGAE"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt;) &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;AND&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt; memtype =&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;"DATA"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;And&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt;NAME &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;in&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt; (&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;"PrinBal"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt;) ;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;STRONG&gt;QUIT&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 19:14:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BASE-SAS/m-p/292817#M60845</guid>
      <dc:creator>sdixit</dc:creator>
      <dc:date>2016-08-19T19:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: BASE SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BASE-SAS/m-p/292820#M60847</link>
      <description>&lt;P&gt;It is slow because you apply upcase() to the libname value.&lt;/P&gt;&lt;P&gt;Just use where clause&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;WHERE&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp; LIBNAME&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;in&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; (&lt;/FONT&gt;&lt;FONT face="Courier New" color="#800080"&gt;"MTGAE"&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;)&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;AND&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; memtype =&lt;/FONT&gt;&lt;FONT face="Courier New" color="#800080"&gt;"DATA"&lt;/FONT&gt; &lt;FONT face="Courier New" color="#0000ff"&gt;And&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt;NAME &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;in&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt; (&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" color="#800080"&gt;&lt;FONT face="Courier New" color="#800080"&gt;&lt;FONT face="Courier New" color="#800080"&gt;"PrinBal"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt;) &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 19:30:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BASE-SAS/m-p/292820#M60847</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2016-08-19T19:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: BASE SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BASE-SAS/m-p/292828#M60850</link>
      <description>&lt;P&gt;If it's too slow look at getting the data from proc datasets again and filter that.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 19:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BASE-SAS/m-p/292828#M60850</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-19T19:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: BASE SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BASE-SAS/m-p/292886#M60870</link>
      <description>How long is long? What's your application? &lt;BR /&gt;No of tables/columns can affect performance as well as libname engine, options and i/o, network constraints.</description>
      <pubDate>Sat, 20 Aug 2016 07:27:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BASE-SAS/m-p/292886#M60870</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-08-20T07:27:30Z</dc:date>
    </item>
  </channel>
</rss>

