Read the documentation on the ALLOCATE command
, or us the TSO HELP ALLOCATE command for the details. Some specifics:
- DATASET(dsname) specifies the name or a list of names of the data sets that are to be allocated. If a list of data set names is entered, ALLOCATE allocates and concatenates non-VSAM data sets.
- The data sets specified in the list must be cataloged.
- The maximum number of data sets that you can concatenate is 255.
- The data set group is concatenated. You must free it to deconcatenate it. The file name specified for the FILE or DDNAME operand on the ALLOCATE command must be the same as that specified for the FILE or DDNAME operand on the FREE command.
So, in your case, use Alloc da('dataset1','dataset2','dataset3') f(inpt) shr reuse