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.dev19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8dd1989586acebafc3c0843dae4530eb35553b52e3865e4f6e7f4fb8e89495c |
|
MD5 | 372143ac48a568291e9f43597b623338 |
|
BLAKE2b-256 | f226d898661ac23a3710060a6150273aac6a61365b04548c44c46c38b1fcb8b1 |
Close
Hashes for zowe_zos_jobs_for_zowe_sdk-1.0.0.dev19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df8b65ab156a4f5620a32d49cc82e72fc63a75c930075f1f78fd0052f1ef7e49 |
|
MD5 | 9388f237386a56c64008cb8a222ae86d |
|
BLAKE2b-256 | b28b7021e8878beb1be3f9296531e279a0700fc92a3108685e4bc81a0eaed05d |