Concatanate datasets

TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

Concatanate datasets

Postby manojlives » Mon Jun 22, 2009 9:05 pm

I need to allocate multiple datatset to a common name, is it possible?

Alloc da('dataset1') f(inpt) shr reuse

Now i need to allocate dataset 1,2,3 to inpt , is this possible?
Posts: 37
Joined: Wed Dec 24, 2008 5:15 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Concatanate datasets

Postby MrSpock » Mon Jun 22, 2009 9:17 pm

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
User avatar
Global moderator
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Return to TSO & ISPF


  • Related topics
    Last post