Redirecting UNIX commands output
By default, the output of both z/OS® and UNIX commands is written to the z/OS system log. You cannot redirect the output of a z/OS command. However, you can redirect both the input stream and output of a UNIX command by following standard UNIX redirection conventions.
For example, the command omvs:ps -ef>/tmp/myoutput
sends
the output of the ps
command to a file called /tmp/myoutput
.
Redirect command output to a file for later examination and to avoid
cluttering the z/OS log.