× 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'm having an issue reading the USER_INFO and USER_STORAGE views in QSYS2
from a NODE.JS program. I can access it just fine through System i
Navigator.

​I can also access other files in QSYS2 just fine. Any ideas as to what the
problem might be? Here are the details of the error:

SQL: SELECT * FROM QSYS2.USER_STORAGE AS US LEFT JOIN QSYS2.USER_INFO AS UI
on UI.AUTHORIZATION_NAME=US.AUTHORIZATION_NAME FETCH FIRST 20 ROWS ONLY
Error: SQLSTATE=PAERR SQLCODE=-1 SQLFetch() failed.
at app.get.sql (/home/BRIAN/projects/ibmidash/index.js:50:6)
at Layer.handle [as handle_request] (/home/BRIAN/projects/ibmidash
/node_modules/express/lib/router/layer.js:95:5)
at next (/home/BRIAN/projects/ibmidash/node_modules/express/lib/rout
er/route.js:131:13)
at Route.dispatch (/home/BRIAN/projects/ibmidash/node_modules/e
xpress/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/home/BRIAN/projects/ibmidash
/node_modules/express/lib/router/layer.js:95:5)
at /home/BRIAN/projects/ibmidash/node_modules/express/lib/route
r/index.js:277:22
at Function.process_params (/home/BRIAN/projects/ibmidash/node_modules/e
xpress/lib/router/index.js:330:12)
at next (/home/BRIAN/projects/ibmidash/node_modules/express/lib/rout
er/index.js:271:10)
at expressInit (/home/BRIAN/projects/ibmidash/node_modules/express/lib/midd
leware/init.js:33:5)
SQL: SELECT * FROM QSYS2.USER_STORAGE AS US LEFT JOIN QSYS2.USER_INFO AS UI
on UI.AUTHORIZATION_NAME=US.AUTHORIZATION_NAME FETCH FIRST 20 ROWS ONLY
Error: SQLSTATE=PAERR SQLCODE=-1 SQLFetch() failed.
at app.get.sql (/home/BRIAN/projects/ibmidash/index.js:50:6)
at Layer.handle [as handle_request] (/home/BRIAN/projects/ibmidash
/node_modules/express/lib/router/layer.js:95:5)
at next (/home/BRIAN/projects/ibmidash/node_modules/express/lib/rout
er/route.js:131:13)
at Route.dispatch (/home/BRIAN/projects/ibmidash/node_modules/e
xpress/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/home/BRIAN/projects/ibmidash
/node_modules/express/lib/router/layer.js:95:5)
at /home/BRIAN/projects/ibmidash/node_modules/express/lib/route
r/index.js:277:22
at Function.process_params (/home/BRIAN/projects/ibmidash/node_modules/e
xpress/lib/router/index.js:330:12)
at next (/home/BRIAN/projects/ibmidash/node_modules/express/lib/rout
er/index.js:271:10)
at expressInit (/home/BRIAN/projects/ibmidash/node_modules/express/lib/midd
leware/init.js:33:5)
at Layer.handle [as handle_request] (/home/BRIAN/projects/ibmidash
/node_modules/express/lib/router/layer.js:95:5)

**** ERROR *****
SQLSTATE: HY010
Native Error Code: -99999
Error occurred in SQL Call Level Interface

/home/BRIAN/projects/ibmidash/index.js:101
db.exec(sql, function(results) {
^
Error: SQLSTATE=HY010 SQLCODE=-99999 Error occurred in SQL Call Level
Interface
at port (/home/BRIAN/projects/ibmidash/index.js:101:6)
at wrapper [as _onTimeout] (timers.js:258:14)
at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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

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.