Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zowe_zos_jobs_for_zowe_sdk-1.0.0.dev26.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file zowe_zos_jobs_for_zowe_sdk-1.0.0.dev26.tar.gz.

File metadata

File hashes

Hashes for zowe_zos_jobs_for_zowe_sdk-1.0.0.dev26.tar.gz
Algorithm Hash digest
SHA256 3430bb42a4c3f519b4ba1fe05ecbc8a6f435594302d098dedd1b6067092c00ab
MD5 710edb0e25cc87c5fb5ec7902beba77d
BLAKE2b-256 9f54573f2402bfe7b4e575cfd7048c158e1287dea06ac271b57874b4127a7a00

See more details on using hashes here.

File details

Details for the file zowe_zos_jobs_for_zowe_sdk-1.0.0.dev26-py3-none-any.whl.

File metadata

File hashes

Hashes for zowe_zos_jobs_for_zowe_sdk-1.0.0.dev26-py3-none-any.whl
Algorithm Hash digest
SHA256 4ce0ab3d6265efe6c2e361a7f634de480c24bfa36a8905e65a58a1e93e568b01
MD5 e3f2183f785f6b6aaa78deaf1a962f24
BLAKE2b-256 78d4f16e9ca86c4f04ecf3166c05cf9e3b0b88f551c110c653112500e2d95c5c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page