<?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 Assign Odbc Library in Java jdbc:sasiom driver in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Assign-Odbc-Library-in-Java-jdbc-sasiom-driver/m-p/654587#M2477</link>
    <description>&lt;P&gt;Hello, I am using Drivers for JDBC to connect in my SAS Workspace.&lt;/P&gt;&lt;P&gt;It is working good for all my BASE libraries, the problem is when I try to connect to a&amp;nbsp;ODBC library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Class.&lt;SPAN&gt;forName&lt;/SPAN&gt;(&lt;SPAN&gt;"com.sas.rio.MVADriver"&lt;/SPAN&gt;);&lt;BR /&gt;Connection connection = DriverManager.getConnection("jdbc:sasiom://myserver.local:8591?librefs=MYLIBNAME '/sasdata/MYLIBNAME'", "myuser", "mypass");&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;This connection is working well, but I don't know how to set a libref when the library is ODBC and don't have a path like&amp;nbsp;'/sasdata/MYLIBNAME';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I list the libs, using: "libname _all_ list;" the result for are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First: I can connect (BASE lib)&lt;/P&gt;&lt;PRE&gt;Libref= MYLIBNAME 
Scope= IOM ROOT COMP ENV
Engine= META
Physical Name= /sasdata/MYLIBNAME
Filename= /sasdata/MYLIBNAME
Inode Number= 131073
Access Permission= rwxrwx---
Owner Name= myuser
File Size= 96KB
File Size (bytes)= 98304&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Second: This I can't connect (ODBC lib)&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;Libref= BI 
Scope= IOM ROOT COMP ENV
Engine= META
Physical Name= BI
Schema/Owner= BI_STAGE&lt;/PRE&gt;&lt;P&gt;Like you can see, in the second (ODBC lib) I don't have a&amp;nbsp;Physical Name and Filename.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I don't know how to crate a connection in Java:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Class.forName("com.sas.rio.MVADriver");
Connection connection = DriverManager.getConnection("jdbc:sasiom://myserver.local:8591?librefs=BI 'BI'", "myuser", "mypass");&lt;/PRE&gt;&lt;P&gt;This way doesn't work!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me how I can assign the odbc lib in my Java connection?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gustavo&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;</description>
    <pubDate>Mon, 08 Jun 2020 17:03:32 GMT</pubDate>
    <dc:creator>gustavotrott</dc:creator>
    <dc:date>2020-06-08T17:03:32Z</dc:date>
    <item>
      <title>Assign Odbc Library in Java jdbc:sasiom driver</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Assign-Odbc-Library-in-Java-jdbc-sasiom-driver/m-p/654587#M2477</link>
      <description>&lt;P&gt;Hello, I am using Drivers for JDBC to connect in my SAS Workspace.&lt;/P&gt;&lt;P&gt;It is working good for all my BASE libraries, the problem is when I try to connect to a&amp;nbsp;ODBC library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Class.&lt;SPAN&gt;forName&lt;/SPAN&gt;(&lt;SPAN&gt;"com.sas.rio.MVADriver"&lt;/SPAN&gt;);&lt;BR /&gt;Connection connection = DriverManager.getConnection("jdbc:sasiom://myserver.local:8591?librefs=MYLIBNAME '/sasdata/MYLIBNAME'", "myuser", "mypass");&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;This connection is working well, but I don't know how to set a libref when the library is ODBC and don't have a path like&amp;nbsp;'/sasdata/MYLIBNAME';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I list the libs, using: "libname _all_ list;" the result for are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First: I can connect (BASE lib)&lt;/P&gt;&lt;PRE&gt;Libref= MYLIBNAME 
Scope= IOM ROOT COMP ENV
Engine= META
Physical Name= /sasdata/MYLIBNAME
Filename= /sasdata/MYLIBNAME
Inode Number= 131073
Access Permission= rwxrwx---
Owner Name= myuser
File Size= 96KB
File Size (bytes)= 98304&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Second: This I can't connect (ODBC lib)&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;Libref= BI 
Scope= IOM ROOT COMP ENV
Engine= META
Physical Name= BI
Schema/Owner= BI_STAGE&lt;/PRE&gt;&lt;P&gt;Like you can see, in the second (ODBC lib) I don't have a&amp;nbsp;Physical Name and Filename.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I don't know how to crate a connection in Java:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Class.forName("com.sas.rio.MVADriver");
Connection connection = DriverManager.getConnection("jdbc:sasiom://myserver.local:8591?librefs=BI 'BI'", "myuser", "mypass");&lt;/PRE&gt;&lt;P&gt;This way doesn't work!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me how I can assign the odbc lib in my Java connection?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gustavo&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;</description>
      <pubDate>Mon, 08 Jun 2020 17:03:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Assign-Odbc-Library-in-Java-jdbc-sasiom-driver/m-p/654587#M2477</guid>
      <dc:creator>gustavotrott</dc:creator>
      <dc:date>2020-06-08T17:03:32Z</dc:date>
    </item>
  </channel>
</rss>

