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.dev17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ad302fa404c244f3eaf4ca714223c49441388b9317ddf549c6d643a0791e1d1 |
|
MD5 | 9a40a40cedf4c55f276f4633ab84585d |
|
BLAKE2b-256 | 83265633b31190b739c16f15b4adaf47487bf28b71f2072f0a9ce0873b15b62c |
Close
Hashes for zowe_zos_jobs_for_zowe_sdk-1.0.0.dev17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d4c316af656835c8d6568e43eb30d13be4cc382ab388f3ef8184d9df9be3885 |
|
MD5 | 5a4fe474b05ba944e9cc703cf2d9c03e |
|
BLAKE2b-256 | 2f328022f5f188bbe4815322a4deb25d505dc2d42961294d7d6306af6b1716db |