Python API modules

mvscmd


zoautil_py.mvscmd.execute(pgm, pgm_args=None, dds=[], *args, **kwargs)


Description

  • Execute an MVS Program.

Returns

  • types.ZOAUResponse object including stdout_response, stderr_response and rc of mvscmd.

Return type

  • zoautil_py.types.ZOAUResponse

Parameters

  • pgm (str) – The program to run.

  • pgm_args (str) – Additional arguments to pass with the program.

  • dds (list [zoautil_py.types.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).

  • verbose (bool) – Enable verbose messages (best used with _function if available and read from ZOAUResponse.stderr_output).



zoautil_py.mvscmd.execute_authorized(pgm, pgm_args=None, dds=[], *args, **kwargs)


Description

  • Execute an authorized MVS Program.

Returns

  • types.ZOAUResponse object including stdout_response, stderr_response and rc of mvscmdauth.

Return type

Parameters

  • pgm (str) – The program to run.

  • pgm_args (str) – Additional arguments to pass with the program.

  • dds (list[zoautil_py.types.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).

  • verbose (bool) – Enable verbose messages (best used with _function if available and read from ZOAUResponse.stderr_output).