CL Command Reference - CHGCLNUP
CL Command List > CHGCLNUP Reference
Description:
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:
. whether the cleanup operation is allowed
. when the cleanup operation is run each day
. which objects are cleaned up
Refer to the following parameter descriptions for a list of the objects that are cleaned up.
. User messages (USRMSG)
. System and workstation msgs (SYSMSG)
. Critical system messages (CRITSYSMSG)
. Job logs and system output (SYSPRT)
. System journals and logs (SYSLOG)
. Office calendar items (CALITM)
Restriction: You must have all object (*ALLOBJ), security administrator (*SECADM), and job control (*JOBCTL) special authorities to use this command.
Examples:
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).