Skip to content

Latest commit

 

History

History

Copy, Sort and Fetch Data Sets on z/OS using Ansible

This playbook demonstrates how to copy a local file containing tabular data to a sequential data set on the remote z/OS system using Red Hat Ansible Certified Content for IBM Z. This data set is then sorted based on a particular criteria and the sorted data set is fetched back to the control node. The following core modules are used to accomplish these set of tasks:

This playbook uses:

  • collection:
    • ibm.ibm_zos_core
  • modules:
    • zos_find
    • zos_lineinfile
    • zos_mvs_raw
    • zos_fetch

It is a good practice to review the playbook contents before executing them. It will help you understand the requirements in terms of space, location, names, authority, and the artifacts that will be created and cleaned up.

Playbook Requirements

This playbook requires:

Configuration

Run the playbook

This project has included a site.yml playbook that serves as the primary playbook that provides additional prerequisite checks then it invokes the copy-sort-fetch.yml playbook.

If you want to run the primary playbook site.yml it will check that your environment has the correct version of Ansible as well as the collection needed to execute correctly. To run the primary playbook, use command:

ansible-playbook -i inventories site.yml

You can skip the prerequisite check and run the copy-sort-fetch.yml with command:

ansible-playbook -i inventories copy-sort-fetch.yml

Changelog

All changes are maintained chronologically by date found in the changelog.

Copyright

© Copyright IBM Corporation 2020

License

Licensed under Apache License, Version 2.0.

Support

Please refer to the support section for more details.