CL Command Reference - STRCLNUP

CL Command List > STRCLNUP Reference

Description:

The Start Cleanup (STRCLNUP) command starts the cleanup operation, if allowed. Cleanup is allowed if *YES is specified for the Allow cleanup (ALWCLNUP) parameter of the Change Cleanup (CHGCLNUP) command.

A batch job is submitted to the job queue specified on the Change Cleanup (CHGCLNUP) command if cleanup is allowed. This cleanup control job submits individual batch jobs to the same job queue each day These batch jobs do the actual cleanup of the items specified on the CHGCLNUP command.

Restriction: You must have job control (*JOBCTL) special authority and have at least *USE authority to the QPGMR user profile to use this command.



Examples:

Example 1: Starting Cleanup Operation as Scheduled

STRCLNUP

This command starts the cleanup operation as specified.



Example 2: Starting Cleanup Operation as Specified on CHGCLNUP Command

STRCLNUP OPTION(*SCHED)

This command starts the cleanup operation as specified on the STRTIME parameter of the Change Cleanup (CHGCLNUP) command or on the Change Cleanup Options panel.



Example 3: Starting Cleanup Operation Immediately

STRCLNUP OPTION(*IMMED)

This command starts the cleanup operation immediately.