Command reference / job
WRKJOBSCDE
Work with Job Schedule Entries
Allows you to work with an entry, entries, or generic entries in the job schedule. Each job schedule entry contains the information needed to automatically submit a batch job once or at regularly scheduled intervals. From the display, you can select options to add, change, remove, hold, or release entries, display details of an entry, or work with the last job submitted for an entry, and you can immediately submit a job using the information contained in an entry. F11 alternates between the schedule data and the job queue data of the entries. The QSYS2.SCHEDULED_JOB_INFO view returns similar information.
Allowed environments: *ALL.
Positional parameters: 1.
Restrictions
- To use this command, you must have use (*USE) authority to object QDFTJOBSCD, type *JOBSCD, in library QUSRSYS and execute (*EXECUTE) authority to library QUSRSYS.
Parameters
JOB
Job name
Specifies the job name of the job schedule entries with which you want to work.
Suggested / special values:
*ALL
*ALL- All job schedule entries matching this command's other parameter values are shown on the display.
*generic-name- All entries with job names that begin with the generic name are displayed.
OUTPUT
Output
Specifies whether the output from the command is displayed at the requesting work station or printed with the job's spooled output.
Allowed values:
*, *PRINT
*- The output is displayed for interactive jobs or printed with the job's spooled output for non-interactive jobs.
*PRINT- The output is printed with the job's spooled output.
PRTFMT
Print format
Specifies the format used for the printed output.
Allowed values:
*BASIC, *FULL
*BASIC- The entries are printed in an abbreviated list format.
*FULL- The details of each entry are printed in an expanded format.
SEQ
Sequence
Specifies the order in which the selected entries are shown.
Allowed values:
*JOB, *DATETIME, *JOBQ
*JOB- Entries are shown in alphabetical order by job name. Within a job name the entries are ordered by entry number from lowest to highest.
*DATETIME- Entries are ordered by the date and time at which their jobs are scheduled to be submitted, with the earliest entries shown first. Entries that do not have a job scheduled to be submitted are shown last.
*JOBQ- The entries are grouped under the name of the job queue to which their jobs are submitted. The job queues are shown in alphabetical order. Within a job queue, entries are shown in alphabetical order.
SCDBY
Scheduled by user
Specifies the name of the user who added the entry to be shown.
Suggested / special values:
*ALL
*ALL- Entries added by all users are shown.
SBMDATE
Submit date
Specifies the date on which the entries to be shown submit jobs to run.
Suggested / special values:
*ALL, *CURRENT
*ALL- All job schedule entries are shown, regardless of the date on which the entries are to submit a job to run.
*CURRENT- The entries scheduled to submit jobs on the current date are shown.
JOBQ
Job queue
Specifies the name of the job queue to which the jobs are submitted. This parameter displays all entries that submit jobs to a specified job queue.
Suggested / special values:
*ALL
*ALL- All entries are shown, regardless of the job queues.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Job queue
Job queue
Library
Library
Suggested / special values:
*LIBL, *CURLIB
Examples
WRKJOBSCDE JOBQ(QGPL/QBATCH)
Shows all the job schedule entries that submit a job to the job queue QBATCH in library QGPL.
Generated from os/cl/catalog/WRKJOBSCDE.json and os/cl/help/WRKJOBSCDE.json.