Zowe Python SDK - z/OS Jobs package
Project description
z/OS Jobs Package
Contains APIs to interact with jobs on z/OS (using z/OSMF jobs REST endpoints).
Examples
Cancel a job
from zowe.core_for_zowe_sdk import ProfileManager
from zowe.zos_jobs_for_zowe_sdk import Jobs
profile = ProfileManager().load(profile_name="zosmf")
jobs_info = Jobs(profile)
print(jobs_info.cancel_job("JOBNAME", "JOBID"))
Delete a job
from zowe.core_for_zowe_sdk import ProfileManager
from zowe.zos_jobs_for_zowe_sdk import Jobs
profile = ProfileManager().load(profile_name="zosmf")
with Jobs(profile) as jobs_info:
print(jobs_info.delete_job("JOBNAME", "JOBID"))
Get jobs by owner
from zowe.core_for_zowe_sdk import ProfileManager
from zowe.zos_jobs_for_zowe_sdk import Jobs
profile = ProfileManager().load(profile_name="zosmf")
with Jobs(profile) as jobs_info:
job_owner = "USERNAME"
print(jobs_info.list_jobs(job_owner))
Submit a job from mainframe
from zowe.core_for_zowe_sdk import ProfileManager
from zowe.zos_jobs_for_zowe_sdk import Jobs
profile = ProfileManager().load(profile_name="zosmf")
with Jobs(profile) as jobs_info:
print(jobs_info.submit_from_mainframe(jcl_path="ZOWEUSER.PUBLIC.MY.DATASET.JCL(MEMBER)"))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for zowe_zos_jobs_for_zowe_sdk-1.0.0.dev16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bfb7da4545380ef7b713c4ca3026de80379a667aa3464d4e3f8dab74efcedb4 |
|
MD5 | d3b72df0d9fa336ff72ec8e9106ea2d8 |
|
BLAKE2b-256 | 5f364d324425191c74fad60aee2b6aa6239d97ec453c6eff5592aeae8c79b0c2 |
Close
Hashes for zowe_zos_jobs_for_zowe_sdk-1.0.0.dev16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5fe41c09e8fd94b2db58ed6bb56989897bf03f5d51a6d59028422ff75bbb1be |
|
MD5 | 9f148d18831bf74a1b68d155b223ca7e |
|
BLAKE2b-256 | 978f6d4e9c76b1784d33e5e06f75a4833afeba4b369c9d088bf3b44011b5587a |