RMVJOBSCDE (Remove Job Schedule Entry)

RMVJOBSCDE Command syntax diagram

 

Purpose

The Remove Job Schedule Entry (RMVJOBSCDE) command allows you to remove an entry, entries, or generic entries from the job schedule. Each job schedule entry contains the information needed to automatically submit a batch job one time, or at regularly scheduled intervals. A message is sent to you and to the message queue specified in the job schedule entry when an entry is successfully removed.

Restriction: To remove entries, have *JOBCTL special authority; otherwise you can remove only those entries that you added.

 

Required Parameters

JOB
Specifies the name of the job schedule entry.

job-name: Specify the name of the job schedule entry.

generic*-job-name: Specify a generic name. A generic name is a character string of one or more characters followed by an asterisk (*); for example, ABC*. The asterisk substitutes for any valid characters. A generic name specifies all objects with names that begin with the generic prefix for which the user has authority. If an asterisk is not included with the generic (prefix) name, the system assumes it to be the complete object name. For more information on the use of generic names, refer to generic names. If a generic name is specified, ENTRYNBR(*ALL) must also be specified.

 

Optional Parameters

ENTRYNBR
Specifies the number of the job schedule entry you want to remove. The message sent when an entry is successfully added contains the entry number. You can also determine the entry number by using the Work with Job Schedule Entries (WRKJOBSCDE) command. Press F11 from the Work with Job Schedule Entries display to show the entry numbers of the selected entries.

*ONLY: One entry in the job schedule has the job name specified on the JOB parameter. If *ONLY is specified and more than one entry has the specified job name, no entries are removed and a message is sent.

*ALL: All entries with the specified job name are removed.

entry-number: Specify the number of the job schedule entry you want to remove.

Examples for RMVJOBSCDE

Example 1: Removing Job Schedule Entries

RMVJOBSCDE  JOB(SAMPLE*)  ENTRYNBR(*ALL)

This command removes all the job schedule entries whose job names start with SAMPLE.

Example 2: Removing an Individual Job Schedule Entry

RMVJOBSCDE  JOB(PAYROLL)  ENTRYNBR(*ONLY)

This command removes the job PAYROLL in the job schedule.

Example 3: Removing a Generic Job Schedule Entry

RMVJOBSCDE  JOB(PAY*)  ENTRYNBR(*ALL)

This command removes all entries in the job schedule that have the prefix PAY in their names.

Error messages for RMVJOBSCDE

*ESCAPE Messages

CPF1628
Job schedule entry &3 number &4 not found.
CPF1629
Not authorized to job schedule &1.
CPF1630
Not authorized to job schedule entry &3 number &4.
CPF1631
&3 entries successfully removed, &4 entries not removed.
CPF1636
More than one entry with specified entry job name found.
CPF1637
Job schedule &1 in library &2 in use.
CPF1638
Job schedule entry &3 number &4 in use.
CPF1640
Job schedule &1 in library &2 does not exist.
CPF1641
Job schedule &1 in library &2 damaged.
CPF1645
No job schedule entries found for specified name.
CPF1646
Entry number must be *ALL when generic name specified.