Using the TSO Allocate Command to Allocate External Files

The syntax of the TSO ALLOCATE command is
ALLOC FILE(ddname) DA('data-set-name ') options
options include options such as file disposition as well as options that describe the format of the file.
Here are some examples:
  • Allocating an existing member of a PDS:
    alloc fi(in1) da('my.pds(mem1)') shr
  • Allocating a new sequential data set:
    alloc fi(report) da('library.report.feb08')
       new sp(1,1) cyl lrecl(80) recfm(f b)
       blksize(6160)
  • Concatenating sequential data sets:
    alloc fi(input) da('library.data.qtr1' 'library.data.qtr2'
       'library.data.qtr3' 'library.data.qtr4') shr
For complete information about the TSO ALLOCATE command, see the appropriate TSO reference for your OS level.