Skip to content

Latest commit

 

History

History
107 lines (96 loc) · 2.68 KB

README-zos-job-output.md

File metadata and controls

107 lines (96 loc) · 2.68 KB

Module

Name

zos_job_out

Description

The zos_job_out module is used to display z/OS job output for a given criteria (Job id/Job name/owner) with or without a data definition name as a filter.

Features

  • Display the z/OS job output for a given criteria (Job id/Job name/owner) with/without a data definition name as a filter.
  • At least provide a job id/job name/owner.
  • The job id can be specific such as "STC02560", or one that uses a pattern such as "STC*" or "*".
  • The job name can be specific such as "TCPIP", or one that uses a pattern such as "TCP*" or "*".
  • The owner can be specific such as "IBMUSER", or one that uses a pattern like "*".
  • If there is no ddname, or if ddname="?", output of all the ddnames under the given job will be displayed.

Usage

Example tasks

- name: Job output with ddname="JESJCL"
  zos_job_out:
    job_id: "STC02560"
    ddname: "JESJCL"
- name: Job output of all ddnames under the specific job
  zos_job_out:
    job_id: "STC02560"
    ddname: "?"
- name: Job output of all ddnames under found jobs
  zos_job_out:
    job_id: "STC*"
    job_name: "*"
    owner: "IBMUSER"
    ddname: "?"

Return values

  • zos_job_out:
    • description: list of job output.
    • returned: success
    • type: list[dict]
    • dict contains:
      • job_id:
        • description: job ID
        • type: str
      • job_name:
        • description: job name
        • type: str
      • subsystem:
        • description: subsystem
        • type: str
      • class:
        • description: class
        • type: str
      • content-type:
        • description: content type
        • type: str
      • ddnames:
        • description: list of data definition name
        • type: list[dict]
        • dict contains:
          • ddname:
            • description: data definition name
            • type: str
          • record-count:
            • description: record count
            • type: int
          • id:
            • description: id
            • type: str
          • stepname:
            • description: step name
            • type: str
          • procstep:
            • description: proc step
            • type: str
          • byte-count:
            • description: byte count
            • type: int
          • content:
            • description: ddname content
            • type: list[str]

Variables

Variables available for module zos_job_out

Variable Description Required
job_id Job ID. no
job_name Job name. no
owner Job owner. no
ddname Data definition name. no

Copyright

© Copyright IBM Corporation 2020