z/OS DFSORT Application Programming Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Sectioned report

z/OS DFSORT Application Programming Guide
SC23-6878-00

You can produce a sectioned report (simple or tailored) by including a BREAK operand to indicate the break field used to divide the report into sections. Each set of sequential input records (which you have previously sorted on the break field and other fields, as appropriate), with the same value for the specified break field, results in a corresponding set of data lines that is treated as a section in the report.

The break field is printed at the beginning of each section. Formatting items can be used to change the appearance of numeric break fields, and to insert a string before or after character or numeric break fields.

Optional break operands can be used to modify the break title for each section (the break value is always printed as part of the break title) and to print statistics for selected numeric fields and the count, in each section. For example, if you add BTITLE, BREAK, BCOUNT, BMAXIMUM, and BMINIMUM to the operands for the tailored report discussed previously, each section of the output in the list data set starts on a new page and can be represented as follows:

 title        - p -        mm/dd/yy        hh:mm:ss

 btitle  bvalue

 header         header
 ----------   --------
 characters         sd
 .                   .
 .                   .
 .                   .

 bcount      d

 bmaximum           sd

 bminimum           sd

The final page showing the overall statistics starts on a new page and can be represented as follows:

 title        - p -        mm/dd/yy        hh:mm:ss

 header         header
 ----------   --------

 average            sd

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014