UNLOAD PLUS input copy data set
For information about the data set needed when you use the INFILE option to unload from a VSAM linear data set, see VSAMDD-data-sets.
Unloading from a single data setIf you specify the INFILE option and you are unloading from a single data set that contains an entire table space or one partition of a partitioned table space, you must have one DD statement that uses the ddname that you specified in the INFILE option.
Unloading an entire partitioned table spaceIf you are unloading an entire partitioned table space from multiple image copy data sets (one image copy data set for each partition of the table space), you must have one DD statement for each partition. Each DD statement must use the ddname that you specified in the INFILE option as a prefix and the partition number of the copy as a suffix, even if multiple image copy data sets are stacked as multiple files on a tape.
Unloading only selected partitionsIf you are unloading only selected partitions, you must have one DD statement for each selected partition. Use the ddname that you specified in the INFILE option as a prefix and the partition number of the copy as a suffix.
Unloading from multiple table spacesIf you are unloading from multiple table spaces, you must have one DD statement for each selected table space. Use the ddname that you specified in the INFILE option as a prefix and the sequence in which the table space is referenced using the SELECT statements as a suffix.
For example, if the first SELECT statement specifies INFILE COPY, a DD statement with a ddname of COPY1 must represent the table space. If the second statement references a table in a different table space, you must have a DD statement with COPY2 for the ddname. If the second SELECT statement references a table in the same table space as the first, you do not need an additional DD statement for the copy.
Unloading from stacked tape data sets
To avoid issues while mounting a stacked data set or to prevent conflicts with stacked copies created with parallel processes (parallel processing can complicate stacking):
- Ensure local and primary copies are not mixed and files of the same type are stacked on the same tapes only.
- Ensure multiple partition copies from the same file are stacked by partition number in ascending order, the stacked data sets on tape volumes need to be placed in FSN (file sequence number) in ascending order.