Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Change Cleanup (CHGCLNUP) command allows you to specify cleanup options controlling which objects on the system are to be deleted automatically. The cleanup options control the following:
Refer to the following parameter descriptions for a list of the objects that are cleaned up.
If cleanup is active when this command is used, the new values may or may not be used, depending on how far along the cleanup is. If cleanup is not active when this command is entered, the new values specified for this command are used the next time cleanup is started with the Start Cleanup (STRCLNUP) command or as described in the Basic System Operation information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
Restriction: You must have all object (*ALLOBJ), security administrator (*SECADM), and job control (*JOBCTL) special authorities to use this command.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
ALWCLNUP | Allow cleanup | *SAME, *YES, *NO | Optional |
STRTIME | Time cleanup starts each day | Time, *SAME, *SCDPWROFF, *NONE | Optional |
USRMSG | Number of days to keep | Element list | Optional |
Element 1: User messages | 1-366, *SAME, *KEEP | ||
SYSMSG | System and workstation msgs | 1-366, *SAME, *KEEP | Optional |
CRITSYSMSG | Critical system messages | 1-366, *SAME, *KEEP | Optional |
SYSPRT | Job logs and system output | 1-366, *SAME, *KEEP | Optional |
SYSLOG | System journals and logs | 1-366, *SAME, *KEEP | Optional |
JOBQ | Job queue | Single values: *SAME Other values: Qualified object name |
Optional |
Qualifier 1: Job queue | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
JRNRCVSIZ | Journal receiver size | 1-1919999, *SAME, *KEEP | Optional |
CALITM | Office calendar items | 1-366, *SAME, *KEEP | Optional |
RUNPTY | Run priority | 1-99, *SAME | Optional |
Top |
Specifies whether the cleanup operation can be run on the system. If ALWCLNUP(*YES) is specified, cleanup can be started with the Start Cleanup (STRCLNUP) command or as described in the Basic System Operation information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter. Also, if ALWCLNUP(*YES) is specified, you can change the cleanup operation by retrieving the program QEZUSRCLNP with the Retrieve CL Source (RTVCLSRC) command, changing the source, and compiling the CL program with the Create CL Program (CRTCLPGM) command.
Top |
Specifies the time the cleanup operation starts each day.
The time can be specified with or without a time separator:
Top |
Specifies whether messages on the user profile message queues are cleaned up. This function deletes messages on the user message queues that have remained on the system longer than the number of days specified.
Top |
Specifies whether messages on the QSYSOPR message queue and on work station message queues are cleaned up. The cleanup function deletes messages on the QSYSOPR message queue and the work station message queues that have remained on the system longer than the number of days specified.
Top |
Specifies whether the cleanup function deletes messages on the QSYSMSG message queue (if it exists) that have remained on the system longer than the number of days specified.
Top |
Specifies whether job logs and other system output are cleaned up.
To prevent this output from being mixed with the user's output, the output queue of the printer file for job logs (QPJOBLOG) is changed to QUSRSYS/QEZJOBLOG to receive the job log. The output queue of print files QPSRVDMP, QPPGMDMP, and QPBASDMP is changed to QUSRSYS/QEZDEBUG. All entries in QEZJOBLOG and QEZDEBUG that are older than the number of days specified on this parameter are deleted. This also removes pending job logs for jobs that completed more than the specified number of days ago.
If the cleanup operation is ended, the output queues named QEZJOBLOG and QEZDEBUG will continue to be used for job logs, service dumps, and program dumps.
Top |
Specifies that system journals, history files, problem log files, and the alert database are cleaned up (deleted).
Journal receivers that are cleaned up:
Journal receivers that are used for one of the following system journals and are older than the number of days specified on this parameter are deleted.
Note: The journal receiver for job accounting (QACGJRN) is cleaned up only if Operational Assistant creates the journal.
History files that are cleaned up:
History files that meet both the following conditions are deleted:
Problem log files and entries that are cleaned up:
Problem log entries older than the number of days specified on this parameter are deleted. The Delete Problem (DLTPRB) command is run to delete the problem log entries. When the DLTPRB command is run, the number of days specified on this parameter is used for the Days (DAYS) parameter of the DLTPRB command.
Note: If the number of days specified on this parameter is less than the number of days specified for the system value QPRBHLDITV (Problem Log Hold Interval), the value for QPRBHLDITV is used for problem log cleanup.
In addition to the problem log entries being deleted, the following problem log files in the QUSRSYS library are reorganized:
Note: The following files are in library QUSRSYS.
QASXCALL QASXFRU QASXNOTE QASXPROB QASXPTF QASXYMP QASXEVT
Alert database entries that are cleaned up:
Alert database entries older than the number of days specified on this parameter are deleted. The Delete Alert (DLTALR) command is run to delete the alert database entries. When the DLTALR command is run, the number of days specified on this parameter is used for the Days (DAYS) parameter of the DLTALR command.
In addition to the alert database entries being deleted, the file QUSRSYS/QAALERT is reorganized.
Program temporary fixes (PTFs) that are cleaned up:
Note: If the library QSMU exists on the system, only the PTFs for the current release are cleaned up. If the library QSMU does not exist on the system, the PTFs for the current and all previous releases are cleaned up.
Top |
Specifies the name and library of the job queue to which the cleanup batch jobs are submitted.
Single values
Qualifier 1: Job queue
Qualifier 2: Library
Top |
Specifies a number of kilobytes (KB) of storage. Each 1000 KB specifies 1,024,000 bytes of storage space. When the size of the space for the journal receiver is larger than the size specified by this value, Operational Assistant (OA) automatic cleanup function will detach it.
OA also automatically detaches receivers that are older than the number of days you have specified for the System journals and logs (SYSLOG) parameter.
Journal receivers are deleted only after they have been detached longer than the number of days specified for the SYSLOG parameter.
Top |
Top |
Specifies the run priority for the job. Run priority is a value ranging from 1 (highest priority) through 99 (lowest priority), that represents the importance of the job when it competes with other jobs for machine resources. This value represents the relative (not absolute) importance of the job. For example, a routing step with a run priority of 25 is not twice as important as one with a run priority of 50.
Top |
Example 1: Keeping User Messages During Cleanup
CHGCLNUP ALWCLNUP(*YES) USRMSG(*KEEP) STRTIME(0700)
This command changes the cleanup options so that user messages are kept and not deleted when cleanup is performed. This command sets cleanup start time at 7:00 A.M.
Example 2: Cleanup of System Journals and System Logs
CHGCLNUP ALWCLNUP(*YES) SYSMSG(10) SYSLOG(3)
This command changes the cleanup options so that system messages are kept for ten days, and system journals and system logs are kept for three days, before being deleted.
Example 3: Changing Run Priority of Cleanup Job.
CHGCLNUP RUNPTY(50)
This command changes the run priority to 50.
Example 4: Changing Journal Receiver Size
CHGCLNUP JRNRCVSIZ(6000)
This changes the journal receiver size limit to 6000 KB of storage, (6144000 bytes).
Top |
*ESCAPE Messages
Top |