HLDJOBJS (Hold Job Using Job Scheduler)

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

HLDJOBJS Command syntax diagram

 

Purpose

The Hold Job using Job Scheduler (HLDJOBJS) command allows you to hold a job that you specify.

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.

When you press Enter, a message is displayed confirming that the job you selected has been held. The job is held until the Release Job using Job Scheduler (RLSJOBJS) command is processed for the job or Option 6 (Release/Reset) is selected for the job on the Work with Jobs display.

 

Required Parameters

JOB
Specifies the name of the job that you want to hold.

You must specify a job and optionally can specify a group to which the job belongs and the associated sequence number of the job.

Element 1: Job

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

Element 2: Group

*NONE: The job is not a member of a group.

group-name: Specify the name of the group to which the job belongs.

Element 3: Group sequence

*NONE: The job does not have a sequence number.

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

Example for HLDJOBJS

Example 1: Holding a Job

HLDJOBJS JOB(JOB02)

In the example, JOB02 is held.

Error messages for HLDJOBJS

None