Troubleshooting
Problem
A program runs in QSHELL; however, it fails in PASE with
/QOpenSys/usr/bin/-sh: db2: 0403-006 Execute permission denied.
Resolving The Problem
In some cases, a program that runs fine in the QSHELL environment fails in the PASE environment. When it fails, it fails with a message similar to the following:
/QOpenSys/usr/bin/-sh: db2: 0403-006 Execute permission denied.
This error is most often due to the program being an ILE/QSYS program in the QSYS.lib file system. QSHELL is capable of executing PASE programs; however, PASE is not capable of executing ILE/QSYS programs.
An easy way to verify whether the program will run or not is to do something similar to the following:
STRQSH
$
whence db2
/usr/bin/db2
$
ls -l /usr/bin/db2
lrwxrwxrwx 1 QSYS 0 22 Oct 22 2007 /usr/bin/db2 -> /QSYS.LIB/QZDFMDB2.PGM
[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z0000000CJRAA2","label":"PASE"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions"}]
Historical Number
588568711
Was this topic helpful?
Document Information
Modified date:
09 February 2023
UID
nas8N1011731