IBM JZOS toolkit user's guide
The JZOS Toolkit is a Java™ Native Interface (JNI) library, consisting of a Java archive (JAR) file and native dynamic library. This toolkit includes the following items:
- A high-performance interface for reading and writing sequential data sets in record mode.
- Low-level wrappers for the z/OS® C library I/O functions.
- A factory class for creating portable Readers and Writers to text files, including MVS data sets.
- Methods for allocating, deleting, and renaming MVS data sets.
- Methods for issuing single and multi-line write-to-operator (WTO) messages.
- A callback interface for handling MVS Start, Modify, and Stop commands.
- An interface to z/OS Catalog Search (IGGCSI00).
- Class com.ibm.jzos.ZUtil, which contains APIs for many z/OS functions, for example:
- Obtaining job, step, user names, process IDs, and so on.
- Writing SMF records
- Reading environment variables
- Reading OS Memory
- Class com.ibm.jzos.PdsDirectory for reading partitioned data set directories.
- Class com.ibm.jzos.ZLogstream for reading, writing, and deleting z/OS log streams.
- Classes in package com.ibm.jzos.wlm for access to z/OS Workload Manager (WLM) services.
- Class com.ibm.jzos.MvsJobSubmitter for submitting z/OS batch jobs from Java code.
- Package com.ibm.jzos.fields containing classes for converting COBOL and Assembler data types to Java objects.
- Class com.ibm.jzos.DfSort, an interface for running the DFSORT program and directing I/O into or from Java applications.
- Class com.ibm.jzos.AccessMethodServices, which is an interface for running the IDCAMS utility.
- Class com.ibm.jzos.Enqueue for serializing and releasing z/OS resources by using the ISGENQ service.
The following sections provide an overview of the JZOS toolkit classes. For more information, see the API reference.
Several sample programs are available for download: https://public.dhe.ibm.com/software/Java/Java11/JZOS/jzos_samples.zip.