Running an MVS batch z/OS UNIX C/C++ application file that is HFS-resident

To run a z/OS UNIX C/C++ executable application file from a z/OS UNIX file under MVS™ batch, invoke the IBM-supplied BPXBATCH program either from TSO/E, or by using JCL or a REXX EXEC (not batch). BPXBATCH performs an initial user login to run a specified program from the shell environment.

Before you invoke BPXBATCH, you must have the appropriate privilege to read from and write to z/OS UNIX files. You should also allocate STDOUT and STDERR files for writing any program output, such as error messages. Allocate the standard files using the PATH options on either the TSO/E ALLOCATE command or the JCL DD statement.

For a detailed discussion of the BPXBATCH program syntax and its use, and an example of running shell utilities under MVS batch using the BPXBATCH program, see z/OS UNIX System Services Command Reference.