Exit Program for Tailoring Automatic Cleanup

You may want to develop your own programs to regularly clean up some of the objects that are not handled by the Operational Assistant automatic cleanup functions.

You can incorporate your own programs into the IBM-supplied automatic cleanup function by using the QEZUSRCLNP program. Then, whenever the system runs automatic cleanup, it also runs your own cleanup programs.

To make a copy of the QEZUSRCLNP program:

  1. Type RTVCLSRC (the Retrieve CL Source command) on any command line and press F4 (Prompt). Type the following values for the prompts:

    Program QEZUSRCLNP
    Library QSYS
    Source file Name of source file
    Library Name of library

    Press the Enter key.

  2. Insert statements that run your own cleanup programs into your copy of QEZUSRCLNP.

  3. Compile your copy of the QEZUSRCLNP program and store it in a library that appears before the QSYS library in the system part of the library list as specified in system value QSYSLIBL.

Whenever the system runs the automatic cleanup function, your version of QEZUSRCLNP is also run.

Note: When Operational Assistant batch cleanup program is running, it uses QUSRSYS library or QEZPWRCLN user index. The cleanup may encounter difficulties if other jobs are also using the same library or user index at this time. Therefore, avoid starting such command as SAVLIB QUSRSYS, or the power schedule commands in the QEZUSRCLNP CL program. If you must start those commands, consider adding them to the Exit Program for Tailoring Power Off (QEZPWROFFP), or changing the subsystem that runs your cleanup jobs to allow only two jobs to run at the same time.


Exit program introduced: V2R1
Top | Operational Assistant APIs | APIs by category