Example 1

 OCCUR FROM(SOURCE) LIST(VOLSERS) ON(40,6,CH) ON(VALCNT)
Prints, in the VOLSERS data set:
  • A heading line containing the standard headings
  • A data line for each unique ON(40,6,CH) value in the standard format containing:
    • The characters from positions 40-45 of the SOURCE data set for the unique value
    • The count of occurrences in the SOURCE data set of the unique value

The VOLSERS output starts on a new page and looks as follows (the first 2 records are shown with illustrative values):

(40,6,CH)         VALUE COUNT
ABC001            000000000000025
ABC002            000000000000011
.                               .
.                               .
.                               .

The heading line appears at the top of each page.