You can use the following JZOS sample Java program, either in a batch job
or from a shell:

com.ibm.jzos.sample.ZipDatasets

- the inputs AND outputs can be a dataset (or DD reference)
- The java program can also be run in batch using the JZOS batch launcher
utility (part of the IBM z/OS SDK).
- its all Java; should have a very high zAAP/zIIP enablement quotient
- this sample is designed to work with text data; the zipped output is
automatically converted from the default EBCDIC platform encoding to
ISO8859-1 (or your choice)

Example:

com.ibm.jzos.sample.ZipDatasets //DD:ZIPOUT //DD:INSEQ.* //DD:INPDS1
//DD:INPDS2(FOO*)


Kirk Wolf
Dovetailed Technologies
http://dovetail.com

PS> This page has the JZOS sample downloads (including source with javadoc)
:
http://www-03.ibm.com/systems/z/os/zos/tools/java/products/jzos/jzossamp.html
The 2.3.0 version includes ZipDatasets, but the web page is out of date and
doesn't mention it.
ZipDatasets is a pretty nice non-trivial example of using the base Java and
JZOS apis (datasets, catalogs, pds directories, etc, etc)


>
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to