PKZIP
and unzip(1)
PKZIP
is a program for archiving multiple files in a
transportable, compressed format. Since there are no FTP clients
capable of recursive file transfer (transferring every file in an
arbitrary directory tree) with MVS systems, we use PKZIP
(version 2.1 for MVS) to compress entire directory trees into one file
that we can transfer with just one FTP command. When the
PKZIP
ped file arrives on the Unix system, we use the
unzip(1)
command to reconstruct the tree.
In order to select an arbitrary group of datasets for compression in
MVS, one uses the -RECURSE
option of PKZIP
. Here is
a JCL script (currently in LOSTPC.TRANSF.CNTL(RECURSE)
)
showing how one would compress the tree LOSTPC.CHAPTER2
. on
MVS:
//LOSTPCC JOB T,CORNU,TIME=(,29),MSGCLASS=X,MSGLEVEL=(2,0) //STPZIP EXEC PGM=PKZIP,REGION=2M //STEPLIB DD DISP=SHR,DSN=SYSP.PKZIP.LOAD //SYSPRINT DD SYSOUT=* //SYSIN DD * -ECHO -ARCHIVE(LOSTPC.TRANSF.ZIP) -ARCHVOL(D0TS12) -RECURSE LOSTPC.CHAPTER2.*
And transfer and unzip(1)
on the Unix system one would type:
$ ftp iccmvs3.unige.org ftp> type binary ftp> cd / ftp> get LOSTPC.TRANSF.ZIP ftp> quit $ unzip LOSTPC.TRANSF.ZIP
And there should now be a directory tree called LOSTPC/CHAPTER2/
with
all of the files in it.
The above procedure was carried out for the following trees:
*** VERONIQUE? PATRICK? WHICH ONES DO WE DO??? ***