Example 18: Concatenate some data sets
Known:
- The data set names: A.CLIST, B.CLIST, C.CLIST
- The ddname: SYSPROC
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:
- 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.
- 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.