If I ssh into my IBMi, and start qsh, I can run db2 -S "SELECT * FROM LIB.SOMEPF"
and get the results. I cannot do it from the default PASE screen. I get
$ /usr/bin/db2
/usr/bin/db2: cannot execute
Is it possible to run sql queries from PASE instead of starting QSH?
I have a db2 shell script in my home directory. It's been there so long I don't know when or how it got there. It may be part of 5799-PTL. Not helpful, I know, but here are the contents:
When I
CALL QP2TERM
and then issue db2 commands likedb2 -S 'select * from datesample'
it runs with this script.