Previewing the contents of a list

You can preview the objects that are to be included in a list by using the PREVIEW function.

About this task

Start of changeWhen you run a utility using the PREVIEW function, Db2 checks for syntax errors in all utility control statements, but normal utility execution does not take place. If the syntax is valid, the utility expands all LISTDEF lists (and TEMPLATE DSN expressions) in SYSIN and prints results to the SYSPRINT data set.End of change

Procedure

To preview the objects that are included in the list:

  • Specify PREVIEW as a JCL parameter.
  • Specify PREVIEW on the OPTIONS PREVIEW control statement.