Example 18: Concatenate some data sets

Known:

alloc file(sysproc) dataset(a.clist,b.clist,c.clist) +  
shr reuse
You cannot directly add another data set to a concatenation. There are two ways to add another data set to a data set concatenation:
  1. Use the FREE command to deallocate or free the data sets in the concatenation. Then reallocate the entire concatenation, including the data set to be added, using the ALLOCATE command.
  2. Specify the REUSE operand with the ALLOCATE command when you concatenate. The REUSE operand specifies the file name being allocated is to be freed and reallocated if it is currently in use.