Operate z/OS Data Sets and UNIX Files

IBM z/OSMF collection provides several modules to work with z/OS data sets and UNIX files. You can use these modules to fetch z/OS data sets and UNIX files from z/OS system to Ansible control node, copy z/OS data sets and UNIX files from Ansible control node to z/OS system, and manage z/OS data sets and UNIX files on z/OS system.

Note

  • Check Mode: These modules do not support check mode.

Modules

  • zmf_dataset_fetch:

    This module can be used to retrieve the contents of a sequential data set, or a member of a partitioned data set (PDS or PDSE) from z/OS system, and save them on Ansible control node.

  • zmf_file_fetch:

    This module can be used to retrieve the contents of a z/OS UNIX System Services (USS) file from z/OS system, and save them on Ansible control node.

  • zmf_dataset_copy:

    This module can be used to copy data from Ansible control node or z/OS system and save it as a data set or data set member. If the source is from z/OS system, it could be a USS file or data set or data set member.

  • zmf_file_copy:

    This module can be used to copy data from Ansible control node to a z/OS UNIX System Services (USS) file on z/OS system.

  • zmf_dataset:

    This module can be used to create, delete and operate on a sequential or partitioned data set, or a member of partitioned data set (PDS or PDSE) on z/OS system. The available operations include rename data set or member, migrate data set and recall the migrated data set.

  • zmf_file:

    This module can be used to create, delete and operate on a z/OS UNIX System Services (USS) file or a directory on z/OS system. The available operations include rename, change mode, change owner and change tag.

Requirements

See the section Requirements.

Sample Playbooks

See the section Playbooks.