Although FATSCOPY functions can be executed through z/OS batch
jobs, the ISPF panels which are provided with the product offer
a much more convenient and easier way of controlling FATSCOPY operations.
|Example 1: “Volume Level”
As you can see from the Main Menu to the right, “Volume level” copying,
whereby whole tape volumes are to be copied, is achieved through Option 1
(working through a consecutive range of tapes) or Option 2 (working through a
list of tapes).
Click here to view the menu options
for volume level copying
To the right, we can see two examples of “Volume Level” copying, which is also
known as “ALLDSN” copying because all files on the selected
tape(s) are copied to the target media.
- In the first example screen, we are going to copy 20 consecutively
named tapes, beginning with BK0012 (i.e. copying BK0012 to BK0031).
- In the second example, we are copying two specifically named tapes,
CCR071 and 001459.
Click here to view volume level copying
“Dataset level” copying is also known as “CATDSN”
copying, because the files are located through the z/OS catalog. In the
example below, we are going to copy a range of datasets based on the
following selection filters:
A tape file which is named MET.FATSCOPY.FILE11 would match the first of the
selection criterion, but we do not wish to copy it, so it is excluded from
the copy process via the “X” exclusion criterion, which
precedes the “S” selections.
Click here to view dataset level copying
Some additional parameters have been set to control the copying process, including:
- EXPDTGROUP=7, which ensures that datasets with similar expiry dates
will be grouped together on the same tape.
- EXPIRED=NO ensures that FATSCOPY doesn't try to copy tape datasets
that have expired.
- OFFSITE=NO tells FATSCOPY not to try to copy datasets that are on tape
volumes that are currently vaulted offsite.
Below is an example of the Simulation Report than may have been produced from
the second of our two “Volume Level” examples. The report lists
the datasets that would be copied from tape volume CCR071. You can see that
the original expiry date (1999365) will be retained when the files are copied
across to a new output tape (in this case, CCR028).
Click here for a larger version
Below is an example of a dataset selection report generated from our earlier
“Dataset Level” job, which shows a list of the datasets that
have matched the first of the three selection criteria.
For each dataset copied, we can see information such as the tape volser,
fileseq and volseq, together with details of the size of the dataset, the
job/step that created it, and the creation and expiry dates.