×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
I am researching db2i and itoolkit by starting with IBM's examples at
https://www.ibm.com/developerworks/ibmi/library/i-native-js-app-ibmi-with-nodejs/
at not having much luck.
The SQL part of the script is connecting to the DB2 server, but any "Select
* From library/db" results in an empty brackets []. If I send query "VALUES
current date", I do get [{"00001":"2018-03-29"}] back. If I put in bad
credentials, I do get auth errors, so it seems to be connecting to the
server.
The same queries work fine from STRSQL.
Also the CL part of the example just returns
Error: SQLSTATE=PAERR SQLCODE=-1 SQLDescribeParam() failed.
at Error (native)
I am new to nodejs, the plan was to find examples for the iSeries, watch
them work, then see how the work and start from there.
Also wondering if my other issue might have some relation to this problem
(see "Broken npm?" thread in OpenSource).
Thanks
Kev
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.