<?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: Is it possible to connect to a IBM DB2 database without using ODBC? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-connect-to-a-IBM-DB2-database-without-using/m-p/844209#M101799</link>
    <description>&lt;P&gt;you maybe have to use more connection parameters for ssl connection.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2025 10:57:19 GMT</pubDate>
    <dc:creator>guillaumebugnon</dc:creator>
    <dc:date>2025-02-25T10:57:19Z</dc:date>
    <item>
      <title>Is it possible to connect to a IBM DB2 database without using ODBC?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-connect-to-a-IBM-DB2-database-without-using/m-p/817369#M99666</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; We use an IBM DB2 database through an SSL connection. The OCBC connection to the DB works well, but is quite complex to setup for the majority of the users. If a software can use a "type 4 db2 connection", odbc is not required. Only a "connection string" is sent directly to the remote server. The parameters of this string are usually configured directly in the software. A connection configuration is created in the software with the proper parameters, which is really simple to document by IT and to execute by the users.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I feel that JMP doesn't support a "type 4 connection" directly, but R and python do. And it's also possible to extract data in a JSL script, like the example below. Could we create a small python script that creates a database connection that would then be available to JSL or to the query builder?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// JSL Script to extract some IBM DB2 data

New SQL Query(
	Connection(
		"ODBC:DSN=DBPROD1;MODE=SHARE;PWD=%_PWD_%;SECURITY=SSL;SSLCLIENTKEYSTASH=C:\BRMDB2\ssl\truststore.sth;SSLCLIENTKEYSTOREDB=C:\BRMDB2\ssl\truststore.kdb;SSLSERVERCERTIFICATE=C:\BRMDB2\ssl\carootcert.der;UID=%_UID_%;"
	),
	QueryName( "Extract exemple" ),
	CustomSQL(
		"SELECT NAME
        	   ,EMPLOYEE_NB 
        	   ,DEPARTMENT
        	   ,SALARY 
        FROM 
           EMPLOYEE_TABLE
        WHERE 
           DEPARTMENT = 'MFG02'"
        )
) &amp;lt;&amp;lt; Run&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 17:51:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-connect-to-a-IBM-DB2-database-without-using/m-p/817369#M99666</guid>
      <dc:creator>Graudet</dc:creator>
      <dc:date>2024-11-21T17:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to connect to a IBM DB2 database without using ODBC?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-connect-to-a-IBM-DB2-database-without-using/m-p/817379#M99667</link>
      <description>&lt;P&gt;Based on this &lt;A href="https://www.jmp.com/en_us/software/analytic-workflow/data-connectors.html" target="_blank" rel="noopener"&gt; Data Connectors&amp;nbsp; &lt;/A&gt;you would have to utilize ODBC. Other option would be to utilize Python Integration to make the queries. Write a function which takes in for example the query and inside it runs Python script to perform the query and returns the result as data table.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 18:16:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-connect-to-a-IBM-DB2-database-without-using/m-p/817379#M99667</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-11-21T18:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to connect to a IBM DB2 database without using ODBC?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-connect-to-a-IBM-DB2-database-without-using/m-p/819019#M99718</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is somewhat what I had in mind, but I was hoping that the connection could be an object created independently and made available for SQL queries. I will test your suggestion and provide feedback here. I assume I can write a Python script "template" that my colleagues could paste into their JMP, adding the SQL code according to their needs. I’m convinced it should work. However, I will check if this solution is functional and usable by my colleagues. If it is, I’ll provide feedback here and accept the response as an acceptable solution. It depends on how good they are with SQL and the size of the tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the response,&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 14:51:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-connect-to-a-IBM-DB2-database-without-using/m-p/819019#M99718</guid>
      <dc:creator>Graudet</dc:creator>
      <dc:date>2024-11-25T14:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to connect to a IBM DB2 database without using ODBC?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-connect-to-a-IBM-DB2-database-without-using/m-p/819024#M99722</link>
      <description>&lt;P&gt;I'm not sure if this type of connectors can be done in JMP18 as this add-in has minimum version of JMP19 EA 3, &lt;A href="https://marketplace.jmp.com/appdetails/S3%20Data%20Connector" target="_self"&gt;S3 Data Connector (JMP Marketplace)&lt;/A&gt;, but it seems to be using Python as connector for AWS S3. If it can be used in JMP18, it might give some ideas of what you could do. You should be able to download the add-in and then extract it by using 7zip for example.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 15:17:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-connect-to-a-IBM-DB2-database-without-using/m-p/819024#M99722</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-11-25T15:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to connect to a IBM DB2 database without using ODBC?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-connect-to-a-IBM-DB2-database-without-using/m-p/819025#M99723</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For oracle and postgre database, we can send only the connection string.&lt;/P&gt;&lt;P&gt;I think that this method should be possible for db2 too without setup the odbc with a name for each computer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could plan to try it this month or next month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 15:45:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-connect-to-a-IBM-DB2-database-without-using/m-p/819025#M99723</guid>
      <dc:creator>guillaumebugnon</dc:creator>
      <dc:date>2024-11-25T15:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to connect to a IBM DB2 database without using ODBC?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-connect-to-a-IBM-DB2-database-without-using/m-p/844208#M101798</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for my late answer.&lt;/P&gt;&lt;P&gt;You can do like this (tested on my side).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;db2_connect =
	"DRIVER={IBM DB2 ODBC DRIVER};
	DATABASE= strDatabase;
	HOSTNAME= strHostname;
	PORT= strPort;
	PROTOCOL=TCPIP;
	UID= strUser;
	PWD= strPassword;";
	
OpenDatabase(db2_connect, "SELECT * FROM SYSIBM.SYSDUMMY1;", "sysdummy1");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You have to define the DRIVER and all&amp;nbsp;other varaibles&amp;nbsp;&lt;CODE class=" language-jsl"&gt;strDatabase,&amp;nbsp;strHostname,&amp;nbsp;strPort,&amp;nbsp;strUser,&amp;nbsp;strPassword&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using SSL, you could try this (not tested):&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;"DRIVER={IBM DB2 ODBC DRIVER};
DATABASE=strDatabase;
HOSTNAME=strHostname;
PORT=strPort;
PROTOCOL=TCPIP;
SECURITY=SSL;
UID=strUser;
PWD=strPassword;
SSLCLIENTKEYSTOREDB=/path/to/client/keystore.kdb;
SSLCLIENTKEYSTASH=/path/to/client/keystore.sth;
SSLCLIENTKEYPASSWORD=keystore_password;"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 11:02:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-connect-to-a-IBM-DB2-database-without-using/m-p/844208#M101798</guid>
      <dc:creator>guillaumebugnon</dc:creator>
      <dc:date>2025-02-25T11:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to connect to a IBM DB2 database without using ODBC?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-connect-to-a-IBM-DB2-database-without-using/m-p/844209#M101799</link>
      <description>&lt;P&gt;you maybe have to use more connection parameters for ssl connection.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 10:57:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-connect-to-a-IBM-DB2-database-without-using/m-p/844209#M101799</guid>
      <dc:creator>guillaumebugnon</dc:creator>
      <dc:date>2025-02-25T10:57:19Z</dc:date>
    </item>
  </channel>
</rss>

