WRKJOBSCDE (Work with Job Schedule Entries)

WRKJOBSCDE Command syntax diagram

 

Purpose

The Work with Job Schedule Entries (WRKJOBSCDE) command 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 one time, or at regularly scheduled intervals.

This command shows the Work with Job Schedule Entries display. From the display, you can select options to add, change, remove, hold, or release entries. You can display details of an entry, or work with the last job submitted for an entry. You can also select an option to immediately submit a job using the information contained in a job schedule entry.

 

Optional Parameters

JOB
Specifies the job name of the job schedule entries with which you want to work.

*ALL: All job schedule entries that meet this command's other parameter values are shown on the display.

job-name: Specify the name of the job schedule entries to be shown on the display.

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. See generic names for additional information.

OUTPUT
Specifies whether the output from the command is shown at the requesting workstation or printed with the job's spooled output. More information on this parameter is in commonly used parameters.

*: Output requested by an interactive job is shown on the display. Output requested by a batch job is printed with the job's spooled output.

*PRINT: The output is printed with the job's spooled output.

SEQ
Specifies the order in which the selected entries are shown.

*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, such as saved entries, 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
Specifies the name of the user who added the entry to be shown.

*ALL: Entries added by all users are shown.

user-name: Specify the name of the user who added the entries to be shown.

SBMDATE
Specifies the date on which the entries to be shown submit jobs to run.

*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.

date: Specify the submit date for the entries to be shown.

JOBQ
Specifies the name of the job queue to which the jobs are to be submitted. Use this parameter to display all entries that will submit jobs to a specified job queue.

*ALL: All entries are shown, regardless of the job queues.

The name of the job queue can be qualified by one of the following library values:

*LIBL: All libraries in the job's library list are searched until the first match is found.

*CURLIB: The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.

library-name: Specify the name of the library to be searched.

job-queue-name: Specify the name of the job queue.

PRTFMT
Specifies the format used for the printed output.

*BASIC: The entries are printed in an abbreviated list format.

*FULL: The details of each entry are printed in an expanded format.

Example for WRKJOBSCDE

WRKJOBSCDE  JOBQ(QGPL/QBATCH)

This command shows all the job schedule entries that submit a job to the job queue QBATCH in library QGPL.

Error messages for WRKJOBSCDE

*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.
CPF1632
Job schedule entry &3 number &4 damaged.
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.