> -----Original Message-----
> From: IBM Mainframe Discussion List
> [mailto:[email protected]] On Behalf Of Bill Ashton
> Sent: Thursday, July 26, 2012 11:25 AM
> To: [email protected]
> Subject: Is it possible to open a ZIP file with PAX?
>
> Is it possible to use the PAX program to open a .zip file on
> the mainframe,
> or does anyone have any other suggestions? I know I can open
> it on the PC
> and transfer the file components over...just looking to see
> if I can cut
> out a step.
> --
> Thank you and best regards,
> *Billy Ashton*
No, the UNIX "pax" command only processes pax archives and compressed pax
archives. It cannot touch zip files. However, if you have the Java SDK
installed, then the Java / UNIX "jar" command can be used to both make zip
archives and extract from zip archives. But you must do it in UNIX (which can
be done in batch in various ways)
jar xf file.zip
will extract all the files in the zip. Perhaps the simpliest way would be:
//UNZIP EXEC PGM=IKJEFT01,REGION=60M
//SYSTSPRT DD SYSOUT=*
//SYSEXEC DD DISP=SHR,DSN=SYS1.SBPXEXEC
// DD DISP=SHR,DSN=another.REXX.library
//SYSTSIN DD *
OSHELL cd /dir/containing/zip/file; +
jar xvf file.zip
OSHELL cd /dir/to/get/unziped/files; +
jar xvf "//'some.dataset.zip'"
/*
//
The first OSHELL is an example to process a zip in a UNIX subdirectory.
The second OSHELL is an example to process a zip file in a z/OS sequential data
set.
In either case, the output _must_ go into a UNIX subdirectory. It cannot go
into z/OS sequential data sets or even a PDS/PDSE.
Oh, I assumed that the Java bin subdirectory is on the PATH. It may not be. If
Java is installed in a "stardard" location, but is not n the PATH, you can
access it similar to:
OSHELL cd/dir/to/get/unziped/files; +
/usr/lpp/java/J5.0/bin/jar "//'some.dataset.zip'"
The current valid values for the J5.0 node are: J5.0 , J5.0_64 , J6.0 , J6.0_64
, J7.0 , and J7.0_64 . The names ending "_64" are the 64 bit versions of Java.
The ones without the "_64" are 31 bit versions of Java. For this, I'd go with
the 31 bit versions.
Be very liberal with your REGION=. And make sure that the sysprog has a goodly
value for the MEMLIMIT in the SMFPRMnn member of PARMLIB. Otherwise, you'll
likely get an "out of memory" error. Java is a super-pig.
--
John McKown
Systems Engineer IV
IT
Administrative Services Group
HealthMarkets(r)
9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone *
[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: INFO IBM-MAIN