Skip to content

samples/jobs.py fails with zoautil_py.exceptions.JobSubmitException? #69

@samilaine

Description

@samilaine

Taking the samples/jobs.py as it is and running it in the IBM Z Explore USS produces

/z/zXXXXX/py > python3 zoautil-examples-jobs.py 
Traceback (most recent call last):
  File "/z/zXXXXX/py/zoautil-examples-jobs.py", line 67, in <module>
    run_sample()
  File "/z/zXXXXX/py/zoautil-examples-jobs.py", line 36, in run_sample
    job_sample = jobs.submit(dsn_with_mem_sample_jcl)
  File "/usr/lpp/IBM/zoautil/lib/zoautil_py/jobs.py", line 55, in submit
    raise ZOAUException(response.stderr_response)
zoautil_py.exceptions.ZOAUException

This might be a quirk of the IBM Z Xplore system setup, which is, obviously, out of my reach, but in any case I think it might be a good idea to wrap the call to jobs.submit() within a try...except block and print out what exactly went wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions