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.dev18.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8278a701f22422dfbf618af62d272f380daa17b9ee88566eb6cc629149ad86dd |
|
MD5 | c3698ab3c610c3a51ac30221983194e8 |
|
BLAKE2b-256 | 1003708b408dbdec01d19f68cfb0efca1eb1d6be552a6304ca73e0acf0f86418 |
Close
Hashes for zowe_zos_jobs_for_zowe_sdk-1.0.0.dev18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e9b5dfd8a105c27e4e169f1c1b73403481eb9aa338c36ae4e9462bf5bd2cbb1 |
|
MD5 | 5ec09e4cc003a718c5ae98354b3068dd |
|
BLAKE2b-256 | 64c0b0c2ad36f5992057aa174d6173b58f3721f3b503989b21220447ded67a74 |