Unloading partitions

You can unload partitions in one of two ways.

About this task

Regardless of the method, the unloaded data can be stored in a single data set for all selected partitions or in one data set for each selected partition. If you want to unload to a single output data set, specify a DD name to UNLDDN. If you want to unload into multiple output data sets, specify a template name that is associated with the partitions. You can process multiple partitions in parallel if the TEMPLATE definition contains the partition as a variable, for example &PA.

You cannot specify multiple output data sets with the FROMCOPY or the FROMCOPYDDN option.

Procedure

If the source table space is partitioned, use only one of the following methods to select the partitions to unload:

  • Use the LIST keyword with a LISTDEF that contains PARTLEVEL specifications.
    Partitions can be either included or excluded by the use of the INCLUDE and the EXCLUDE features of LISTDEF.
  • Specify the PART keyword to select a single partition or a range of partitions.