Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Example: Running a shell script in batch z/OS UNIX System Services User's Guide SA23-2279-00 |
|
You can use BPXBATCH to run a shell script through batch and redirect the output and error messages to z/OS UNIX files or MVS™ data sets. Because the default is PARM='SH', the PARM= is not specified in the following example. The shell script associated with the STDIN ddname is invoked. You can allocate STDIN, STDOUT, and STDERR as z/OS UNIX files, using the PATH operand on the DD statements. You can also allocate STDOUT and STDERR as MVS data sets. Example: User TURBO runs a shell script in batch, as follows:
Example: The following JCL is similar to the previous example
and produces equivalent results but uses the PARM= string
to specify the shell script to be run:
|
Copyright IBM Corporation 1990, 2014
|