Not only possible, but already available! See the sample program "com.ibm.jzos.sample.ZipDatasets" in the JZOS Sample programs download, which is available here: http://www-03.ibm.com/servers/eserver/zseries/software/java/products/jzos/jzossamp.html
Like most Java programs, you can run this from a shell or using the JZOS Batch launcher. You can also run java under TSO, using REXX/bpxwunix or BPXBATCH. I've clipped the comment header from the sample class below. Kirk Wolf Dovetailed Technologies http://dovetail.com /** * 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. * <p/> * Details on the input arguments to this class are available by executing * the main method with no arguments. (see {...@link #usage()) * <p/> * Example: Zip several partitioned datasets to a Unix zip file: <pre> com.ibm.jzos.sample.ZipDatasets test.zip sys1.proclib(asm*) hlq.**.jcl </pre> * <p/> * Example: Zip all datasets matching two patterns to a dataset: <pre> com.ibm.jzos.sample.ZipDatasets //hlq.backup.zip payroll.*.data gl.**.dat* </pre> * <p/> * Example: Zip data using DDs and input and output: <pre> com.ibm.jzos.sample.ZipDatasets //DD:ZIPOUT //DD:INSEQ1 //DD:INPDS1 //DD:INPDS2(FOO*) </pre> * <p/> * The following classes and APIs are demonstrated: * @see com.ibm.jzos.ZFile * @see com.ibm.jzos.ZUtil * @see com.ibm.jzos.CatalogSearch * @see java.util.zip.ZipOutputStream * @see java.util.regex.Pattern * @see java.util.regex.Matcher * @see ZipDatasetSource the class which creates Zip archive entries for each input dataset/pattern * @since 2.3.0 */ On Fri, Jun 26, 2009 at 3:21 PM, McKown, John <[email protected]> wrote: > > I've seen a lot of messages about InfoZIP and other z/OS compatible zip > creation software. So, I just got to thinking (again). Java has a __lot__ of > functionality in the base language (well in the included classes) to handle > zip archives as well as code conversion. Using this, along with the ZFile > classes in JZOS, it should be possible to address all of the concerns about > functionality. The plus & minus is the fact that it would be in Java. The > plus is that, as a Java application, it would be zAAP eligible. The minus is > that, as a Java application, if run on a CP, it would be a "dog" and increase > the MSUs over "well coded" C (or HLASM). > > Does anybody think that this would be an interesting application? This could > app could run in batch under JZOS or as a UNIX command. I don't know how to > run it under TSO as a TSO command process or even if that would even be > possible. > > John McKown > Systems Engineer IV > IT > > Administrative Services Group > > HealthMarkets(r) > > 9151 Boulevard 26 * N. Richland Hills * TX 76010 > (817) 255-3225 phone * (817)-961-6183 cell > [email protected] * www.HealthMarkets.com > > Confidentiality Notice: This e-mail message may contain confidential or > proprietary information. If you are not the intended recipient, please > contact the sender by reply e-mail and destroy all copies of the original > message. HealthMarkets(r) is the brand name for products underwritten and > issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake > Life Insurance Company(r), Mid-West National Life Insurance Company of > TennesseeSM and The MEGA Life and Health Insurance Company.SM > > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: GET IBM-MAIN INFO > Search the archives at http://bama.ua.edu/archives/ibm-main.html ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

