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.dev20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4200962418f4733bd19a149424f6ef7b1a94821a139c6784473b13ad34170615 |
|
MD5 | d4dff447a08433f797b79768227e17b3 |
|
BLAKE2b-256 | 42bff461c507e3d429a9d05a30d4a8e0047edbcbce2182384bdf70a88550a585 |
Close
Hashes for zowe_zos_jobs_for_zowe_sdk-1.0.0.dev20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9536d4d66e91a64130fc7c6a3ed2a4acbf55223b4ca24af4d7fa48dd2013de05 |
|
MD5 | 73946691ef5d71570b25d6e8859aed34 |
|
BLAKE2b-256 | 8f887327366f3c878ece3bae1a5f7feabed6bdce0f37e903ffcef98c7e3269cc |