WFL imposes a maximum size for a library maintenance COPY statement, which limits the number of files that can be specified in a single COPY statement. The number of files is determined by the size of the file names.
If FILECOPY determines that a COPY statement is likely to exceed the WFL limit, it splits the COPY statement into multiple COPY statements. If multiple tape volumes are generated as a result of splitting the COPY statement, each destination volume is given a unique name. This occurs when LIBMAINTDIR has the default value FALSE and LIBMAINTAPPEND has the default value NO.
Volume naming behaves as follows, depending on the attribute value.
If a COPY statement needs to be split, each destination tape volume is modified with a numeric suffix. This suffix is incremented by one for each separate COPY statement. For example, if the requested volume name is BACKUP, the volume name used is BACKUP1, BACKUP2, and so on. If the LOCKINDEX option is used without the INDEXLABEL option, a single index file is created.
LIBMAINTDIR = FALSE, LIBMAINTAPPEND = NO (or attributes not specified)
If a COPY statement needs to be split, each destination tape volume is given the same name. The second and subsequent volumes have the LIBMAINTAPPEND attribute set to TOEND. This results in a single volume (possibly spanning multiple reels) being created.
LIBMAINTDIR = TRUE, LIBMAINTAPPEND = NO
If a COPY statement needs to be split, each destination tape volume is given the same name. All volumes have the LIBMAINTAPPEND attributes set to TOEND. This results in a single volume (possibly spanning multiple reels) being created.
LIBMAINTDIR = TRUE or FALSE, LIBMAINTAPPEND = TOEND