_BPX_BATCH_SPAWN and _BPX_BATCH_UMASK environment variables
- _BPX_BATCH_UMASK=0755
- _BPX_BATCH_SPAWN=YES|NO
_BPX_BATCH_UMASK allows the user the flexibility of modifying the permission bits on newly created files instead of using the default mask (when PGM is specified).
Valid characters for the mask value are the octal digits 0 to 7,
inclusive. If an invalid character is found, that character and all
subsequent characters to the right are ignored. For example, 0348 is
interpreted as 0034 and 0586 is
interpreted as 0005.
_BPX_BATCH_SPAWN causes BPXBATCH to use spawn instead of fork/exec and allows data definitions to be carried over into the spawned process. When _BPX_BATCH_SPAWN is set to YES, spawn will be used. If it is set to NO, which is equivalent to the default behavior, fork/exec will be used to execute the program.
- _BPX_SHAREAS=YES|NO|REUSE When _BPX_SHAREAS is YES or REUSE, the child process that is created by spawn will run in the same address space as the parent's under these conditions:
- The child process is not setuid or setgid to a value different from the parent.
- The spawned file name is not an external link or a sticky bit file.
- The parent has enough resources to allow the child process to reside in the same address space.
- The NOSHAREAS extended attribute is not set.
When _BPX_SHAREAS is NO, the child and parent are run in separate address spaces.
- _BPX_SPAWN_SCRIPT=YES
When _BPX_SPAWN_SCRIPT is YES, the spawn will treat the specified file as a shell script and will invoke the shell to run the shell script.
Setting _BPX_SPAWN_SCRIPT=YES improves shell script performance. See Improving the performance of shell scripts for more information. For more information about spawn, see spawn (BPX1SPN, BPX4SPN) — Spawn a process in z/OS UNIX System Services Programming: Assembler Callable Services Reference.