<?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: Checking the engine use in a library in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Checking-the-engine-use-in-a-library/m-p/718065#M38111</link>
    <description>Have you checked the dictionary.libname table to see what metadata is stored on libraries? I would start there - I may have the name of the table wrong but there's a table in SASHELP that has the libraries and the metadata for said libraries.</description>
    <pubDate>Tue, 09 Feb 2021 23:15:59 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-02-09T23:15:59Z</dc:date>
    <item>
      <title>Checking the engine use in a library</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Checking-the-engine-use-in-a-library/m-p/718058#M38110</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have elaborate a simple macro to get the dataset list in a library as well as the number of observations.&lt;/P&gt;
&lt;P&gt;However depending on the engine use into the base or spde, my macro need to be adapted.&lt;/P&gt;
&lt;P&gt;For the first call, the library use base engine so I need to eliminate the spde wording from the macro, while the second&lt;/P&gt;
&lt;P&gt;library use spde engine and the macro work perfectly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to check which engine is use in a library in other the make this macro more versatile.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Alain&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%MACRO nbobsindataset(path=);&lt;BR /&gt;libname SOURCE spde "&amp;amp;path.";&lt;/P&gt;
&lt;P&gt;Proc sql;&lt;BR /&gt;create table want as&lt;BR /&gt;select libname,memname, nobs&lt;BR /&gt;from dictionary.tables &lt;BR /&gt;where libname='SOURCE'&lt;BR /&gt;;&lt;BR /&gt;QUIT;&lt;BR /&gt;%mend nbobsindataset;&lt;BR /&gt;&lt;BR /&gt;/*%nbobsindataset(path=/.../data/bkp);*/&lt;BR /&gt;%nbobsindataset(path=/.../sas20206/wc/folder1);&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 22:51:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Checking-the-engine-use-in-a-library/m-p/718058#M38110</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2021-02-09T22:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Checking the engine use in a library</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Checking-the-engine-use-in-a-library/m-p/718065#M38111</link>
      <description>Have you checked the dictionary.libname table to see what metadata is stored on libraries? I would start there - I may have the name of the table wrong but there's a table in SASHELP that has the libraries and the metadata for said libraries.</description>
      <pubDate>Tue, 09 Feb 2021 23:15:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Checking-the-engine-use-in-a-library/m-p/718065#M38111</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-02-09T23:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Checking the engine use in a library</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Checking-the-engine-use-in-a-library/m-p/718069#M38112</link>
      <description>&lt;P&gt;Close SASHELP.VLIBNAM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;PRE&gt;14   Proc sql;
15      describe table dictionary.libnames;
NOTE: SQL table DICTIONARY.LIBNAMES was created like:

create table DICTIONARY.LIBNAMES
  (
   libname char(8) label='Library Name',
   engine char(8) label='Engine Name',
   path char(1024) label='Pathname',
   level num label='Library Concatenation Level',
   fileformat char(8) label='Default File Format',
   readonly char(3) label='Read-only?',
   sequential char(3) label='Sequential?',
   sysdesc char(1024) label='System Information Description',
   sysname char(1024) label='System Information Name',
   sysvalue char(1024) label='System Information Value',
   temp char(3) label='Temp Access?'
  );

16   quit;
&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Feb 2021 23:38:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Checking-the-engine-use-in-a-library/m-p/718069#M38112</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-02-09T23:38:21Z</dc:date>
    </item>
  </channel>
</rss>

