I want to use a DD reference in my STDENV shell script but according to this line in the JZOS output:
JVMJZBL2999T -> adoptEnvironment()
JVMJZBL2999T -> spawnChild()
JVMJZBL1036D Spawned child shell process with PID: 987
JVMJZBL2999T <- spawnChild()
A new ASID is spawned causing DD allocations to not be copied to the new ASID.
The JZOS batch launcher should probably do a "local spawn" of the process rather than fork a new AS, but it doesn't. I would suggest that you open a requirement with the IBM support center.