Why not use ODBC instead of JDBC? The Db2i driver supports PASE.

On Wed, 2020-06-03 at 10:26 -0500, Steve M via OpenSource wrote:
Okay, I surrender. The divot on my desk, matching my forehead, is
quite deep from repeated pounding.

I am sure I am missing something very simple here, but for the life
of me I
can't figure out what.

Developed a project, on my PC, using Node and using NPM installed
Path, JDBC and it works fine being locally hosted and accessing data
on DB2.

Created a new folder on my IFS, then went to Call QP2Term and
navigated to
the folder. NPM INIT worked fine. NPM install of Express and Path,

Tried to NPM install JDBC and received a failure, as near as I can
from this: as400 Error:
`node-gyp rebuild`

It seems to be related to a child-process rebuild during the
install. After
being unable to resolve this issue, I then found an example which was

"var db = require('/QOpenSys/QIBM/ProdData/Node/os400/db2i/lib/db2');

I looked in my IFS and have nothing like that. My Node installation
to be here: /QOpenSys/pkgs/lib/nodejs8

I am sure I have gotten myself all twisted up somewhere.

Before trying to resolve all of these issues the question is this -
what is
the best/proper way for developing on your PC and Node/Express
to access DB2 that will work both when hosted with LocalHost during
development and with your IBM i hosting during actual use? I would
not to develop in the IFS, but rather develop local on my PC and then
over the files once they are working, or is that bad
practice? Should I
just be developing directly within the IFS?

As for my software, I have been using JetBrains IntelliJ (my
preference) for
development and also using Visual Studio Code (to learn something
new). Any
recommendation on better or worse on those? Less concerned with this
and more with my ability to access the DB2 data.

Thanks for any/all the help. First time posting out here on
OpenSource as I
am venturing into new arenas of utilization of our IBM i. Long time
RPG and
COBOL and Java developer trying to negotiate the OpenSource world.


Steve Meisinger

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.