This paper is a mini-user guide for DFSORT’s versatile ICETOOL data objective is to show you how to use DFSORT’s ICETOOL to accomplish complex tasks. You can change the DFSORT or ICETOOL control statements and job steps to create reports for your installation. Consider these things that you can do to the. Complete ICETOOL job and TOOLMSG output. Here is the complete ICETOOL job you created in this chapter: Figure 1. Complete ICETOOL Job (Part 1 of 2).

| Author: | Malakinos Shaktit |
| Country: | Saint Kitts and Nevis |
| Language: | English (Spanish) |
| Genre: | Spiritual |
| Published (Last): | 20 April 2016 |
| Pages: | 333 |
| PDF File Size: | 11.59 Mb |
| ePub File Size: | 4.34 Mb |
| ISBN: | 456-3-25691-181-7 |
| Downloads: | 93914 |
| Price: | Free* [*Free Regsitration Required] |
| Uploader: | Gardaktilar |
Selecting records by field occurrences
You can select different combinations of records with duplicate and icehool values using the following operands: Suppose you want to use the SORT.
BKIN is the ddname for the sample bookstore data set. The intermediate result would be: Write a DD statement for the A Table 1 shows the Book Title and Publisher fields for the records in the resulting output data set.

Here is the complete JCL for the job, including control statements: So far in this chapter you have learned how to print statistics for numeric fields, create sorted and unsorted data sets, obtain a count of numeric fields in a range for a particular field, print fields from an input data set, print reports, print a count of field occurrences and select output records based on field occurrences.
The output records would look like this: To create an output data set containing records for publishers with more than four different books in use, write the following SELECT statement: The selected records are written to the output data set identified by the TO operand.
To create separate output data sets containing records with only the course name and author’s last name, both for courses that use more than one book, and for courses that use only one book, write the following SELECT statement: You can use up to 10 ON fields; all of icetol ON field values are used for sorting and counting occurrences. DUP is the ddname of ifetool output data set to contain the records for courses with more than one book.
NODUP is the ddname of the output data set to contain the records for courses with only one book. This brings the records for each state with the highest number of employees to the top.
Here iceool the DUP records exactly as they would appear: BOOKS1 data sets and place it at the end of the job:. The actual records contain all of the fields. As with the OCCUR operator, values that occur only once are called non-duplicate values, and values that occur more than once are called duplicate values.

The SORT statement orders the records ascending by state and descending by number of employees.
