<?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: Query ( Oracle / DB2 / ...)   library definition ? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Oracle-DB2-library-definition/m-p/5974#M1893</link>
    <description>Hi Chris,&lt;BR /&gt;
&lt;BR /&gt;
Yes, dictionary.libnames - contains very minimal info ...&lt;BR /&gt;
   probably this is impossible to get this kind of information.&lt;BR /&gt;
thanks, for your answer&lt;BR /&gt;
   Imre&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
  create table work.info as select *&lt;BR /&gt;
  from dictionary.libnames&lt;BR /&gt;
  where libname = upcase("stage");&lt;BR /&gt;
 quit;&lt;BR /&gt;
 data _null_ ;&lt;BR /&gt;
    set work.info ;&lt;BR /&gt;
    put (_all_)  (= /);&lt;BR /&gt;
    run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;libname=STAGE&lt;BR /&gt;
engine=ORACLE&lt;BR /&gt;
path=TESTU&lt;BR /&gt;
level=0&lt;BR /&gt;
fileformat=&lt;BR /&gt;
readonly=no&lt;BR /&gt;
sequential=no&lt;BR /&gt;
sysdesc=ORACLE ACCESS ENGINE LIB INFO&lt;BR /&gt;
sysname=Schema/User&lt;BR /&gt;
sysvalue=stage&lt;/I&gt;&lt;BR /&gt;
NOTE: There were 1 observations read from the data set WORK.INFO.</description>
    <pubDate>Thu, 20 Dec 2007 11:12:16 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-12-20T11:12:16Z</dc:date>
    <item>
      <title>Query ( Oracle / DB2 / ...)   library definition ?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Oracle-DB2-library-definition/m-p/5967#M1886</link>
      <description>I would like to query the value of existing  Libname Statements parameters.&lt;BR /&gt;
&lt;BR /&gt;
for example : this Libname definition :&lt;BR /&gt;
             &lt;B&gt;libname mydblib oracle user=xxxx  pass=xxxxx &lt;BR /&gt;
                     connection=xxxxxxx  dblibterm=xxxxxx;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
Is this possible to query the value of&lt;BR /&gt;
   &lt;I&gt;       connection =  ?&lt;BR /&gt;
             dblibterm    =  ?&lt;BR /&gt;
             user           =  ?&lt;BR /&gt;
             .....&lt;BR /&gt;
    &lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
Any function or metatable exist to query by libname ?&lt;BR /&gt;
&lt;BR /&gt;
The  &lt;I&gt;"libname mydblib list ; "&lt;/I&gt;  - not write this kind of information.&lt;BR /&gt;
&lt;BR /&gt;
Thanks, &lt;BR /&gt;
   Imre</description>
      <pubDate>Tue, 18 Dec 2007 15:42:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Oracle-DB2-library-definition/m-p/5967#M1886</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-12-18T15:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Query ( Oracle / DB2 / ...)   library definition ?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Oracle-DB2-library-definition/m-p/5968#M1887</link>
      <description>have a look at &amp;amp;sysdbmsg&lt;BR /&gt;
straight after the libname connection is made&lt;BR /&gt;
&lt;BR /&gt;
It may reveal some info.&lt;BR /&gt;
&lt;BR /&gt;
PeterC

Message was edited by: Peter_c</description>
      <pubDate>Tue, 18 Dec 2007 16:38:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Oracle-DB2-library-definition/m-p/5968#M1887</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-12-18T16:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Query ( Oracle / DB2 / ...)   library definition ?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Oracle-DB2-library-definition/m-p/5969#M1888</link>
      <description>Peter_c   - Thanks your answer,&lt;BR /&gt;
&lt;BR /&gt;
From the documentation - this macro variable contains only the error messages:&lt;BR /&gt;
&lt;I&gt;SYSDBMSG &lt;BR /&gt;
    contains DBMS-specific error messages that are generated when you use&lt;BR /&gt;
    SAS/ACCESS software to access your DBMS data.&lt;/I&gt;&lt;BR /&gt;
it is not solve my problem.  &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;BR /&gt;
And this macro is empty - because no ERROR .&lt;BR /&gt;
&lt;BR /&gt;
---------------&lt;BR /&gt;
For example I have a libname definition like this:&lt;BR /&gt;
Libname  O_WORK        ORACLE user="&amp;amp;actualuser"&lt;BR /&gt;
                       password   ="&amp;amp;defaultpassword" &lt;BR /&gt;
                       path       ="TESTU"&lt;BR /&gt;
                       schema     =&amp;amp;actualuser.     &lt;BR /&gt;
                       dbindex    =YES &lt;BR /&gt;
                       read_lock_type=nolock &lt;BR /&gt;
                       readbuff  =5000&lt;BR /&gt;
                       insertbuff=2000&lt;BR /&gt;
             ;&lt;BR /&gt;
&lt;BR /&gt;
I would like to write a macro for example ..&lt;BR /&gt;
    %get_lib_param(O_WORK,dbindex); --&amp;gt;    return:  YES&lt;BR /&gt;
    %get_lib_param(O_WORK,readbuff); --&amp;gt;   return:  5000&lt;BR /&gt;
    %get_lib_param(O_WORK,read_lock_type); --&amp;gt;   return: nolock &lt;BR /&gt;
   &lt;BR /&gt;
is this possible? Any function/meta table  - to query this values  ?  &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The Libname .. LIST - only write this:&lt;BR /&gt;
  &lt;B&gt; libname O_WORK LIST;&lt;/B&gt;&lt;BR /&gt;
NOTE: Libref=   O_WORK&lt;BR /&gt;
      Scope=    Program&lt;BR /&gt;
      Engine=   ORACLE&lt;BR /&gt;
      Physical Name= TESTU&lt;BR /&gt;
      Schema/User= codwadm&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
thanks in advance,&lt;BR /&gt;
  Imre</description>
      <pubDate>Tue, 18 Dec 2007 17:00:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Oracle-DB2-library-definition/m-p/5969#M1888</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-12-18T17:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Query ( Oracle / DB2 / ...)   library definition ?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Oracle-DB2-library-definition/m-p/5970#M1889</link>
      <description>since almost all installations are different, yours will be unique too, but this feature is documented as holding more than just messages about errors.&lt;BR /&gt;
&lt;BR /&gt;
Extracted from SAS Access to DB/2&lt;BR /&gt;
"PROMPT=&amp;lt;’&amp;gt; CLI-connection-string&amp;lt;’&amp;gt;&lt;BR /&gt;
specifies connection information for your data source or database for PCs only. Separate multiple options with a semicolon. &lt;B&gt;When a successful connection is made, the complete connection string is returned in the SYSDBMSG macro variable.&lt;/B&gt;" &lt;BR /&gt;
&lt;BR /&gt;
so I thought you might consider it worth the trouble to try.&lt;BR /&gt;
&lt;BR /&gt;
Merry Christmas&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
PeterC</description>
      <pubDate>Tue, 18 Dec 2007 17:10:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Oracle-DB2-library-definition/m-p/5970#M1889</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-12-18T17:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Query ( Oracle / DB2 / ...)   library definition ?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Oracle-DB2-library-definition/m-p/5971#M1890</link>
      <description>Hi PeterC !&lt;BR /&gt;
&lt;BR /&gt;
  Thanks for Your Answer ...&lt;BR /&gt;
  Sorry , I have not expressed myself precisely. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;  .. &lt;BR /&gt;
      and Merry Cristmas for You &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
   I'll go ahead and clarify for everyone else out there:&lt;BR /&gt;
&lt;BR /&gt;
I have lot of libname definition&lt;BR /&gt;
Libname  O_WORK  .....    ;&lt;BR /&gt;
Libname  O_META  .....    ;&lt;BR /&gt;
Libname  O_SYS   .....    ;&lt;BR /&gt;
&lt;BR /&gt;
I would like query selected parameters from libname definition&lt;BR /&gt;
  ( except - password &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; )&lt;BR /&gt;
for example: &lt;BR /&gt;
    %get_lib_param(O_WORK,dbindex);       --&amp;gt;   return: YES&lt;BR /&gt;
    %get_lib_param(O_META,readbuff);      --&amp;gt;   return: 5000&lt;BR /&gt;
    %get_lib_param(O_SYS,read_lock_type); --&amp;gt;   return: nolock &lt;BR /&gt;
    %get_lib_param(O_SYS,shema ); &lt;BR /&gt;
&lt;BR /&gt;
 ( system:  HP-UX ,   ver:  SAS9.1.3 ,   Access2Oracle )&lt;BR /&gt;
 &lt;BR /&gt;
Thanks in advance,&lt;BR /&gt;
  Imre</description>
      <pubDate>Tue, 18 Dec 2007 18:25:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Oracle-DB2-library-definition/m-p/5971#M1890</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-12-18T18:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Query ( Oracle / DB2 / ...)   library definition ?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Oracle-DB2-library-definition/m-p/5972#M1891</link>
      <description>Some information is available via the DICTIONARY tables.  For example:&lt;BR /&gt;
&lt;BR /&gt;
proc sql; &lt;BR /&gt;
create table work.info as select * &lt;BR /&gt;
from dictionary.libnames&lt;BR /&gt;
where libname = upcase("sashelp"); &lt;BR /&gt;
quit; &lt;BR /&gt;
&lt;BR /&gt;
But not the level of DBMS-specific detail that you are asking for.  Even LIBNAME LIST doesn't always give you what you would want.&lt;BR /&gt;
&lt;BR /&gt;
Chris</description>
      <pubDate>Wed, 19 Dec 2007 21:55:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Oracle-DB2-library-definition/m-p/5972#M1891</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2007-12-19T21:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Query ( Oracle / DB2 / ...)   library definition ?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Oracle-DB2-library-definition/m-p/5973#M1892</link>
      <description>I don't have "Access to Oracle" here or in my office, but I have worked with Access to ODBC here.&lt;BR /&gt;
&lt;BR /&gt;
Stepping through the standard Dictionary views gives you some data, but was a little short of what was needed for consistency of ODBC installations.  I found that using Windows APIs it was possible to query and surface definitions from the ODBC administrator that could be matched by ODBC definition name to the library data.&lt;BR /&gt;
&lt;BR /&gt;
In fact, there was sufficient data to create new ODBC definitions where a client was malconfigured.  I'm not sure if this would be enough to start me on getting the Oracle definition since it appears that ODBC holds the definition locally on the client, while Oracle passes it off to the Oracle server.&lt;BR /&gt;
&lt;BR /&gt;
Kind regards&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Wed, 19 Dec 2007 22:23:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Oracle-DB2-library-definition/m-p/5973#M1892</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-12-19T22:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Query ( Oracle / DB2 / ...)   library definition ?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Oracle-DB2-library-definition/m-p/5974#M1893</link>
      <description>Hi Chris,&lt;BR /&gt;
&lt;BR /&gt;
Yes, dictionary.libnames - contains very minimal info ...&lt;BR /&gt;
   probably this is impossible to get this kind of information.&lt;BR /&gt;
thanks, for your answer&lt;BR /&gt;
   Imre&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
  create table work.info as select *&lt;BR /&gt;
  from dictionary.libnames&lt;BR /&gt;
  where libname = upcase("stage");&lt;BR /&gt;
 quit;&lt;BR /&gt;
 data _null_ ;&lt;BR /&gt;
    set work.info ;&lt;BR /&gt;
    put (_all_)  (= /);&lt;BR /&gt;
    run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;libname=STAGE&lt;BR /&gt;
engine=ORACLE&lt;BR /&gt;
path=TESTU&lt;BR /&gt;
level=0&lt;BR /&gt;
fileformat=&lt;BR /&gt;
readonly=no&lt;BR /&gt;
sequential=no&lt;BR /&gt;
sysdesc=ORACLE ACCESS ENGINE LIB INFO&lt;BR /&gt;
sysname=Schema/User&lt;BR /&gt;
sysvalue=stage&lt;/I&gt;&lt;BR /&gt;
NOTE: There were 1 observations read from the data set WORK.INFO.</description>
      <pubDate>Thu, 20 Dec 2007 11:12:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Oracle-DB2-library-definition/m-p/5974#M1893</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-12-20T11:12:16Z</dc:date>
    </item>
  </channel>
</rss>

