Code examples for using ZOAU commands and APIs
This section contains code examples that demonstrate how to use ZOAU shell commands and Python APIs for MVS resource task automation.
For a brief overview to help you get started, see Using commands and APIs provided by ZOAU.
Starting with ZOAU v1.3, JSON support is enabled for more than a dozen utilities, and the same base JSON schema is used to provide output. To learn more, see ZOAU JSON schema and examples.
The following resources provide examples for specific use cases.
To work with data sets:
- Check whether a data set exists
- List data sets
- Create a data set
- Rename a data set
- Copy data sets
- Compare two data sets
- Write to a data set
- Delete data sets
- Archive data sets
- Restore data sets
- Print the current HLQ
To work with data set members:
- Read a data set record by record
- List data set members
- Delete data set members
- Rename a data set member
To work with generation data groups:
To work with text:
- Search for text in data sets
- Read text in a data set
- Modify text blocks in data sets
- Replace text in data sets
To work with jobs:
- Submit a job
- Cancel a job
- List jobs
- List job DDs
- List job output for step name
- Submit an operator command
To work with system information:
- Display the console log
- Perform APF administration tasks
- Display the active parmlib
- Search parmlib for a string
- Search parmlib for a member
- Get a temporary data set name
- Find a member in a concatenation
- Display the active link list
- Search link list for a member
- Display the active proclib
- Search proclib for a string
- Search proclib for a member