Python API mvscmd module
The zoautil_py.mvscmd
module contains the utilities needed to execute both unauthorized and authorized MVS system commands. This module has only functions.
Functions
zoautil_py.mvscmd.execute(pgm, pgm_args, dds, **kwargs)
Description
- Execute an MVS Program.
Returns
- ZOAUResponse object including stdout_response, stderr_response and rc of mvscmd.
Return type
- zoautil_py.ztypes.ZOAUResponse
Parameters
-
pgm (str) – Name of the program to run.
-
pgm_args (str) – Additional arguments to pass as the PARM parameter.
-
dds (list [
zoautil_py.ztypes.DDStatement
]]) – List of DD statements to pass with command.
Other Parameters
-
debug
(bool) – Enable debug messages (best used with _function if available and read from ZOAUResponse.stderr_output). -
tmphlq
: (str) - Use an alternative high-level qualifier (HLQ) for the temporary dataset name. -
verbose
(bool) – Enable verbose messages (best used with _function if available and read from ZOAUResponse.stderr_output).