RNMJOBJS (Rename Job using Job Scheduler)

Note: To use this command, have the 5722-JS1 (Job Scheduler for iSeries) licensed program installed.

RNMJOBJS Command syntax diagram

 

Purpose

The Rename Job using Job Scheduler (RNMJOBJS) command allows you to rename a job.

Note: When referring to a job in this command, we are referring to an entry in Job Scheduler.

An entry in Job Scheduler is a user-defined name for commands or programs that you want to process at scheduled times and dates. Job Scheduler jobs (entries) are not OS/400 objects.

After renaming the job, you can change any or all of the associated parameters.

Note: No subordinate jobs for a group can exist to rename the sequence 1 job of the group.

 

Required Parameters

JOB
Specifies the name of the job schedule entry that you want to rename. You must specify a job and optionally can specify a group to which the job belongs as well as a sequence number for the job within the group.

Element 1: Job

job-name: Specify the name of the job that you want to rename.

Element 2: Group

*NONE: The job that you are renaming is not a member of a group.

group-name: Specify the name of the group for the job that you are renaming.

Element 3: Group sequence

*NONE: The job that you are renaming does not have a sequence number.

group-sequence-number: Specify the sequence number of the job within the group.

NEWJOB
Specifies the name of the job schedule entry that you are creating as a result of renaming the job specified in the NEWJOB parameter. You must specify a job and optionally can specify a group to which the job belongs as well as a sequence number for the job within the group.

The first job of a group must be sequence number 1. Sequence numbers can range from 1 to 99.

Element 1: New job

new-job-name: Specify the new name of the job that you are renaming.

Element 2: Group

*NONE: The job that you are renaming is not a member of a group.

group-name: Specify the name of the group for the job that you are renaming.

Element 3: Group sequence

*NONE: The job that you are renaming is not a member of a group.

group-sequence-number: Specify the sequence number of the job within the group.

Example for RMNJOBJS

Example 1: Renaming a Job

RNMJOBJS JOB(JOB02) NEWJOB(JOB04)

In the example, JOB02 is renamed to JOB04.

Error messages for RMNJOBJS

None