Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Hold Job Schedule Entry (HLDJOBSCDE) command allows you to hold an entry, all entries, or a set of entries in the job schedule. Each job schedule entry contains the information needed to automatically submit a job to be run once or at regularly scheduled intervals.
If you hold a job schedule entry:
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
JOB | Job name | Generic name, name, *ALL | Required, Positional 1 |
ENTRYNBR | Entry number | 000001-999999, *ONLY, *ALL | Optional |
Top |
Specifies the name of the job schedule entry.
This is a required parameter.
Top |
Specifies the number of the job schedule entry you want held. 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 WRKJOBSCDE display to show the entry numbers of the selected entries.
Top |
Example 1: Holding a Job Schedule Entry
HLDJOBSCDE JOB(CLEANUP)
This command holds the job schedule entry with the job name CLEANUP.
Example 2: Holding All Job Schedule Entries
HLDJOBSCDE JOB(*ALL) ENTRYNBR(*ALL)
This command holds all entries in the job schedule.
Example 3: Holding an Individual Job Schedule Entry
HLDJOBSCDE JOB(PAYROLL) ENTRYNBR(*ONLY)
This command holds the entry PAYROLL in the job schedule.
Example 4: Holding a Generic Job Schedule Entry
HLDJOBSCDE JOB(PAY*) ENTRYNBR(*ALL)
This command holds all entries in the job schedule that have the prefix PAY in their names.
Top |
*ESCAPE Messages
Top |