After upgrading agent from 11.3 to 12.0, some scripts are failing with an "Invalid shell with an error exit code 4014".
Release : 12.0
Component : WAAE, WADE, Agent
As oscomponent.checkvalidshell is enabled (oscomponent.checkvalidshell=true) in agentparm.txt, the agent performs a check against what is defined in your script and what is defined in the oscomponent.validshell parameter. These two parameters work in conjunction with each other. If the shell your script is using is not defined in the oscomponent.validshell parameter, the agent will fail the job.
Examples:
See oscomponent.checkvalidshell and oscomponent.validshell parameters in the
WA Agent for UNIX, Linux, Windows, or IBM i Agent Parameters
section of the Workload Automation System Agent documentation for details on these parameters.
Older versions prior to 11.4, did not honor oscomponent.checkvalidshell.
Setting oscomponent.checkvalidshell=false will bring the behavior closer to the old behavior.