LISTDEF

You can use the Db2 LISTDEF utility to define reusable lists of objects for other utilities to process.

When you define a list with the LISTDEF utility, you can specify the objects that you want to include in the list by using either explicit names or naming patterns with wildcard characters. You can then specify this list by name in other utility control statements. Using such predefined lists saves you from having to specify all of these objects each time you run a utility or having to run the utility multiple times. These LISTDEF lists can also help ensure that an object is not accidentally omitted. For example, if you want to make an image copy of every table space in database ABC, you can specify such a list (LISTDEF ABCLIST INCLUDE TABLESPACES DATABASE ABC) and then run the COPY utility on this list. Utility processing builds the list of objects during execution.

The LISTDEF utility is often used with the TEMPLATE utility.