IBM Support

QShell QZSHFCHLD job

Question & Answer


Question

What is the QZSHFCHLD job and what causes it to be used?

Answer

QZSHFCHLD is a child job in the Qshell environment.
The shell itself is contained within a QZSHSH job but all activity within that shell job is performed in either spawned threads (QP0ZSPWT), spawned processes (QP0ZSPWP), or child jobs (QZSHFCHLD).
Most shell commands generate spawned threads or processes.
Following is an example of generating multiple child jobs:
===> CHGJOB LOG(4 00 *SECLVL)
===> STRQSH
$ touch 1.test 2.test 3.test
$ find . -name '*.test' -exec chmod 777 {} \;
<F3> to exit the shell
===> WRKSPLF
The preceding commands cause multiple spool files with User Data of "QZSHFCHLD" to be generated. Find them with:
WRKSPLF SELECT(*ALL *ALL *ALL QZSHFCHLD)
For "find "/" -exec", one child job per found file will be generated, therefore, you will have one spool file generated for each found file.

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Component":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
17 October 2022

UID

ibm11098237