RTVCLNUP (Retrieve Cleanup)
RTVCLNUP Command syntax diagram
Purpose
The Retrieve Cleanup (RTVCLNUP) command is used in a CL program or REXX procedure to retrieve a cleanup operation value. The value is returned (copied) to the specified CL variable.
Optional Parameters
- ALWCLNUP
- Specifies the name of the CL variable that receives the allow cleanup value. The variable named has a minimum length of 4 characters. *YES is returned if the cleanup operation is allowed to run. Otherwise, *NO is returned.
- STRTIME
- Specifies the name of the CL variable that receives the time the cleanup operation starts each day. The variable named has a minimum length of 10 characters. The special value *NONE or *SCDPWROFF, or the start time is returned.
- USRMSG
- Specifies the name of the CL variable that receives the value for deleting user messages on user profile message queues. The variable named has a minimum length of 5 characters. The special value *KEEP or the number of days user messages are kept before they are deleted is returned.
- SYSMSG
- Specifies the name of the CL variable that receives the value for deleting messages on the QSYSOPR message queue and on work station message queues. The variable named has a minimum length of 5 characters. The special value *KEEP or the number of days system messages are kept before they are deleted is returned.
- SYSPRT
- Specifies the name of the CL variable that receives the value for deleting job logs and other system output. The variable named has a minimum length of 5 characters. The special value *KEEP or the number of days job logs are kept before they are deleted is returned.
- SYSLOG
- Specifies the name of the CL variable that receives the value for deleting system journals, history files, problem log files, alert database, and program temporary fixes. The variable named has a minimum length of 5 characters. The special value *KEEP or the number of days system journals and system logs are kept before they are deleted is returned.
- CALITM
- Specifies the name of the CL variable that receives the value for deleting OfficeVision calendar items. The variable named has a minimum length of 5 characters. The special value *KEEP or the number of days calendar items are kept before they are deleted is returned.
- JOBQ
- Specifies the name of the CL variable that receives the name of the job queue to which the cleanup batch jobs are submitted. The variable named has a minimum length of 10 characters. The name of the job queue under which cleanup batch jobs are run is returned.
- JOBQLIB
- Specifies the name of the CL variable that receives the library name of the job queue to which the cleanup batch jobs are submitted. The variable named has a minimum length of 10 characters. The name of the library where the job queue is located is returned.
- RUNPTY
- Specifies the name of the CL variable that receives the 2-digit value, ranging from 1 through 99, that is the run (or processing) priority for routing steps that are part of the job. For additional information on run priority, refer to this parameter description in the CHGJOB (Change Job) command. The variable must be a 2-digit decimal variable specified with no decimal positions.
- JRNRCVSIZ
- Specifies the name of the CL variable that receives the value for the journal receiver size ranging from 1 through 1,919,999 (KB). 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. The variable must be an 7-digit decimal variable specified with no decimal positions.
Examples for RTVCLNUP
Example 1: Retrieving Number of Days Messages are Kept
DCL VAR(&UMSGDAYS) TYPE(*CHAR) LEN(5) RTVCLNUP USRMSG(&UMSGDAYS)These commands retrieve the number of days that user messages are kept before being deleted.
Example 2: Retrieving Time Cleanup Operation Starts
DCL VAR(&CLNUPTIME) TYPE(CHAR) LEN(10) RTVCLNUP STRTIME(&CLNUPTIME)These commands retrieve the time that the cleanup operation starts.
Example 3: Retrieving Run Priority
DCL VAR(&RPTY) TYPE(*DEC) LEN(2 0) RTVCLNUP RUNPTY(&RPTY)This command retrieves the run priority for the cleanup job. The run priority number is copied into the CL variable &RPTY. The variable must be a 2-digit decimal variable with no decimal positions.
Example 4: Retrieving Journal Receiver Size
DCL VAR(&JRNSIZ) TYPE(*DEC) LEN(7 0) RTVCLNUP JRNRCVSIZ(&JRNSIZ)This command retrieves the journal receiver size for the cleanup job. The journal receiver size is copied into the CL variable &JRNSIZ. The variable must be a 7-digit decimal variable with no decimal positions.
Error messages for RTVCLNUP
*ESCAPE Messages
- CPF1E2B
- Power scheduler and cleanup options not found.
- CPF1E33
- Cleanup options or power schedule in use by another user.
- CPF1E99
- Unexpected error occurred.