Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
DATASORT operator z/OS DFSORT Application Programming Guide SC23-6878-00 |
|
>>-DATASORT--FROM(indd)--TO(outdd)--USING(xxxx)-----------------> >--+-HEADER----+--+-TRAILER----+--+-------------+-------------->< +-FIRST-----+ +-LAST-------+ '-VSAMTYPE(x)-' +-HEADER(u)-+ +-TRAILER(v)-+ '-FIRST(u)--' '-LAST(v)----' Copies one or more header records and one or more trailer records to the output data set in their original input record order, while sorting the data records between the header and trailer records, using the DFSORT control statements in xxxxCNTL. By definition, the header records are the first n records in the input data set, the trailer records are the last n records in the input data set, and the data records (also called detail records) are the records between the header and trailer records. Thus, the first n records (header records) and last n records (trailer records) are kept in place and the data records between them are sorted. You must specify one header operand (HEADER, FIRST, HEADER(u) or FIRST(u)), one trailer operand (TRAILER, LAST, TRAILER(v) or LAST(v)), or one header operand and one trailer operand. If you specify a header operand without a trailer operand, only the header records will be kept in place. If you specify a trailer operand without a header operand, only the trailer records will be kept in place. If you specify a header operand and a trailer operand, both the header records and trailer records will be kept in place. DFSORT is called to copy the header and trailer records and to sort the data records. DFSORT uses its E15 and E35 exits to process the records as needed. ICETOOL passes the EQUALS option to DFSORT to ensure that duplicates are kept in their original input order. You must supply a DFSORT SORT statement in the xxxxCNTL data set to indicate the control fields for sorting the data records. You can use additional DFSORT control statements in xxxxCNTL providing
you observe these rules:
ICETOOL requires extra storage for DATASORT processing, over and above what is normally needed by ICETOOL and DFSORT, in order to save your header and trailer records. The amount of storage needed depends on the number of header and trailer records you specify, and the LRECL of the FROM data set. In most cases, the needed storage can be obtained (above 16MB virtual). However, if ICETOOL cannot get the storage it needs, it issues a message and terminates the DATASORT operation. Increasing the REGION by the amount indicated in the message may allow ICETOOL to run successfully. The DYNALLOC option is passed to DFSORT to ensure that work space
is available for the sort. If your installation defaults for dynamic
allocation are inappropriate for a DATASORT operator, you can take
one of the following actions:
Tape work data sets cannot be used with ICETOOL. |
Copyright IBM Corporation 1990, 2014
|