Command reference / sys

CHGCLNUP

Change Cleanup

Changes the automatic cleanup options: whether cleanup is allowed to run, when it starts each day, and how many days of user messages, system messages, job logs and other system output, and system journals and logs are kept. A day count can be *KEEP, which keeps that category of objects. The options are used by STRCLNUP; new values apply the next time cleanup starts. You must have *ALLOBJ, *SECADM and *JOBCTL special authority (CPF1E32).

Allowed environments: *ALL. Positional parameters: 0.

Parameters

ALWCLNUP Allow automatic cleanup

Specifies whether the cleanup is allowed to run on this system. The initial value is *NO, but it is set to *YES during a scratch install.

Type
*CHAR
Required
No
Default
*SAME
Length
4
Case
Uppercase

Allowed values: *YES, *NO, *SAME

*SAME
The value does not change.
*YES
Automatic cleanup can be started with STRCLNUP.
*NO
Cleanup cannot run on this system.

STRTIME Time cleanup starts each day

Specifies when cleanup starts each day. A time is given as 4 or 6 digits, or 5 or 8 characters with the job's time separator in apostrophes; hh 00-23, mm and ss 00-59. The initial value is 22:00:00.

Type
*CHAR
Required
No
Default
*SAME
Length
8
Case
Uppercase

Suggested / special values: *SAME, *SCDPWROFF, *NONE

*SAME
The value does not change.
*SCDPWROFF
Cleanup starts at the scheduled power off time of the power on/off schedule.
*NONE
No start time is scheduled; cleanup is not submitted automatically.

USRMSG User messages

Specifies how many days user profile message queues keep their messages, from 1 through 366. The initial value is 7.

Type
*DEC
Required
No
Default
*SAME
Length
3
Range
1 to 366
Case
Uppercase

Suggested / special values: *SAME, *KEEP

*SAME
The value does not change.
*KEEP
User messages are kept.

SYSMSG System and workstation messages

Specifies how many days the system operator queue QSYSOPR and the workstation message queues keep their messages, from 1 through 366. The initial value is 4.

Type
*DEC
Required
No
Default
*SAME
Length
3
Range
1 to 366
Case
Uppercase

Suggested / special values: *SAME, *KEEP

*SAME
The value does not change.
*KEEP
System and workstation messages are kept.

CRITSYSMSG Critical system messages

Specifies how many days the critical system message queue QSYSMSG, when it exists, keeps its messages, from 1 through 366. The initial value is *KEEP.

Type
*DEC
Required
No
Default
*SAME
Length
3
Range
1 to 366
Case
Uppercase

Suggested / special values: *SAME, *KEEP

*SAME
The value does not change.
*KEEP
Critical system messages are kept.

SYSPRT Job logs and other system output

Specifies how many days the output queues QUSRSYS/QEZJOBLOG (job logs) and QUSRSYS/QEZDEBUG (service and program dumps) keep their spooled files, from 1 through 366. Cleanup moves the QPJOBLOG printer file to QEZJOBLOG and the dump printer files to QEZDEBUG. The initial value is 7.

Type
*DEC
Required
No
Default
*SAME
Length
3
Range
1 to 366
Case
Uppercase

Suggested / special values: *SAME, *KEEP

*SAME
The value does not change.
*KEEP
Job logs and other system output are kept.

SYSLOG System journals and system logs

Specifies how many days the system journals and system logs, including the history log QHST, are kept, from 1 through 366. The initial value is 30.

Type
*DEC
Required
No
Default
*SAME
Length
3
Range
1 to 366
Case
Uppercase

Suggested / special values: *SAME, *KEEP

*SAME
The value does not change.
*KEEP
Journals and logs are not deleted.

JOBQ Job queue

Specifies the job queue that the cleanup jobs are submitted to, as a name and a library. The initial value is *LIBL/QCTL.

Type
*QUAL
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME

*SAME
The value does not change.
*LIBL
For the library, the job queue is found through the job's library list.
*CURLIB
For the library, the job's current library is used, or QGPL when no current library is set.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Job queue Job queue

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

JRNRCVSIZ Journal receiver size

Specifies the maximum size, in kilobytes, of a system journal receiver, from 1 through 1000000000 (1000 kilobytes is 1,024,000 bytes). The initial value is 100000. The emulator stores the value; it has no system journals to detach.

Type
*DEC
Required
No
Default
*SAME
Length
10
Range
1 to 1000000000
Case
Uppercase

Suggested / special values: *SAME

CALITM Office calendar items

This parameter is not supported in V5R1 and later releases. It is accepted for compatibility and ignored.

Type
*DEC
Required
No
Default
*SAME
Length
3
Range
1 to 366
Case
Uppercase

Suggested / special values: *SAME, *KEEP

RUNPTY Run priority

Specifies the run priority of the cleanup jobs, from 1 through 99. The initial value is 55.

Type
*DEC
Required
No
Default
*SAME
Length
2
Range
1 to 99
Case
Uppercase

Suggested / special values: *SAME

*SAME
The value does not change.

Examples

CHGCLNUP ALWCLNUP(*YES) USRMSG(*KEEP) STRTIME(0700)

Cleanup is allowed, starts at 07:00 each day, and user messages are kept.

CHGCLNUP SYSMSG(10) SYSLOG(3)

System and workstation messages are kept 10 days and system journals and logs 3 days.

CHGCLNUP RUNPTY(50)

The cleanup jobs run at priority 50; every other option keeps its value.

CHGCLNUP JOBQ(*CURLIB/QBATCH)

The cleanup jobs are submitted to QBATCH in the job's current library, or in QGPL when there is none.

IBM command documentation

Generated from os/cl/catalog/CHGCLNUP.json and os/cl/help/CHGCLNUP.json.