Step 1. Transferring the archive file to a data set
From a workstation: If you have TCP/IP on your workstation,
you can use the ftp command to transfer
an archive file to MVS™ or to
the z/OS® shell (if you have
the z/OS Communications Server
installed).
- a.
- Copy the archive file into a file.
- b.
- Enter the FTP command.
Tip: If you are ftp-ing to a remote z/OS UNIX file system, be aware that the z/OS UNIX server often listens to a port other than the well-known port. Make sure you know the address and port to use.
- c.
- Enter the binary subcommand.
- d.
- Enter the put subcommand, specifying a z/OS UNIX directory
or a sequential or partitioned data set as the destination. If you are specifying a data set, you may prefer to use one partitioned data set for all your archive files, with each archive file a member in the partitioned data set. Here is an example of the partitioned data set attributes you might want:
DATA SET NAME: TURBO.CMPL.ARCHIVE GENERAL DATA: CURRENT ALLOCATION: Volume serial: TRBLK1 Allocated Cylinders: 26 Device type: 3380 Allocated extents: 5 Organization: PO Record format: VB Record length: 255 Block size: 23476 CURRENT UTILIZATION: 1st extent Cylinders: 12 Used Cylinders: 0 Secondary Cylinders: 0 Used extents: 0 Creation date: 1994/12/18 Expiration date: ***NONE***
- e.
- Go to Step 2. Copying the file from a data set into a file system.
From a tape drive at your MVS system: If
you have an archive file on tape and the necessary tape drive at your MVS system, you can copy the file
directly from the tape into a data set.
- a.
- Copy the archive file from the tape into a data set. Here is some
sample JCL for copying an archive file (TURBO.TARTAPE) from a tape
into a data set (TURBO.TAR):
//TAPE2DS JOB ,',MSGLEVEL=(1,1) //* //STEP1 EXEC PGM=IEBGENER //SYSIN DD DUMMY //SYSPRINT DD SYSOUT=* //SYSUT1 DD DSNAME=TURBO.TARTAPE,UNIT=TAPE,LABEL=(1,NL),DISP=OLD, // VOL=SER=123456,DCB=(RECFM=U,BLKSIZE=5120) //SYSUT2 DD DSNAME=TURBO.TAR,DISP=(NEW,CATLG),UNIT=SYSDA, // SPACE=(5120,(100,100),RLSE)
Note: For LABEL=, NL indicates that there is no label. Use NL when transferring a tape between an MVS and a UNIX system; use SL when transferring a tape between two MVS systems. - b.
- Go to Step 2. Copying the file from a data set into a file system, which follows.