FWIW, there is a sample Java class (com.ibm.jzos.sample.ZipDatasets)
provided by the JZOS toolkit, which is part of the z/OS Java SDKs, that
allows you to zip one or more text datasets and PDSs into a zip file.  If
you have a zAPP engine, it would take advantage of it.

The JZOS samples (including source code and javadoc) are available for
download here:
http://www-03.ibm.com/systems/z/os/zos/tools/java/products/jzos/jzossamp.html

The web page doesn't mention this sample, but if you download the javadoc,
here's a clip:
com.ibm.jzos.sample.ZipDatasets

A sample Java main class that can be invoked to create a Zip archive from
one or more datasets or PDS members. Datasets are treated as text and
converted from EBCDIC to ASCII (ISO8859-1) or to the specified target
codepage.

Details on the input arguments to this class are available by executing the
main method with no arguments.

Example: Zip several partitioned datasets to a Unix zip file:

    com.ibm.jzos.sample.ZipDatasets test.zip sys1.proclib(asm*) hlq.**.jcl


 Example: Zip all datasets matching two patterns to a dataset:

    com.ibm.jzos.sample.ZipDatasets //hlq.backup.zip payroll.*.data gl.**.dat*


 Example: Zip data using DDs and input and output:

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


 To invoke this from a z/OS Unix shell:


java -cp jzos_sample.jar com.ibm.jzos.sample.ZipDatasets  ....


Of course, it could also be run from the JZOS batch launcher.


Kirk Wolf

Dovetailed Technologies

http://dovetail.com

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to