CTGBATCH Error errno occurred starting child process for HFS_executable with errno2 = errno2
CTGBATCH has encountered error errno while starting the target program HFS_executable . Possible reasons could be that the user does have the correct authority to execute the target program, the program is not an USS executable or valid shell script.
CTGBATCH will terminate with JES return code 8, after writing diagnostic information to the STDERR log destination.
The z/OS C/C++ Run-Time Library Reference (SC28-1663) documents the possible errno values and likely reason for the failure. In this case, the failing function call is spawnp(). If problems persist, contact your service organization and supply the diagnostic log data together with the JCL being used to start the Gateway daemon.