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.dev21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8b7526cac4d5f405e6da12cf75e83c282a5346845430900d6ba0b4c89a49b42 |
|
MD5 | 06ab38ccf9a8774fd32a67ca090741f8 |
|
BLAKE2b-256 | fa05f2ff268cd042fa86572a8ff93c7acf237236bcd841a71e8864cc30e2915e |
Close
Hashes for zowe_zos_jobs_for_zowe_sdk-1.0.0.dev21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1a3e2768ed74e27016d76ef169170e997d82d5dcf446c5bffdf145a8d93c5b5 |
|
MD5 | c22409f873e43a6420813e6b843ade68 |
|
BLAKE2b-256 | 09f6e4608b51c7b0051c85f31c6b302bf96102d0e17b54591827ee405d4685ca |