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)
This mailing list archive is Copyright 1997-2026 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.