Controlling which jobs are analyzed with Exclude processing

The term "work unit" is used in this section to refer to either a batch job, a started task, or a TSO user.

The Exclude and Include options (Exclude/Include) can be used to select which work unit abends you want analyzed.

If neither option is specified, the default is to include all work units.

It is possible to specify each of these options any number of times to achieve the desired inclusion or exclusion of specific work units. For example, all jobs can be excluded and then only certain jobs included, or if the opposite is desired, all jobs included (the default) and only some jobs excluded.

The selection process is as follows:
It follows from the above that the order in which Include and Exclude options are specified is significant. For example, if the following were specified, all batch jobs executing under the user ID FRED would be included for analysis, regardless of job name or execution class:
Exclude(TYPE(JOB) NAME(TEST*))   /* Exclude all batch jobs with names
                                    starting with TEST */
Exclude(CLASS(Z))                /* Exclude all batch jobs in class Z */
Include(TYPE(JOB) USERID(FRED))  /* Include batch jobs belonging to FRED */
However, if the last two options were reversed as shown, FRED's batch jobs would be excluded if they were executing in class Z:
Exclude(TYPE(JOB) NAME(TEST*))   /* Exclude all batch jobs with names
                                    starting with TEST */
Include(TYPE(JOB) USERID(FRED))  /* Include batch jobs belonging to FRED */
Exclude(CLASS(Z))                /* Exclude all batch jobs in class Z */
Note: Final exclude/include status can be controlled by an Analysis Control user exit (including dump registration) by setting the ENV.EXCLUDE value to "Y" or "N".