Command reference / job
WRKUSRJOB
Work with User Jobs
Lists a selected set of user jobs so you can work with them. The display you get depends on the STATUS, ASTLVL and JOBTYPE values: the Work with Signed-On Users display, the Work with Jobs display for batch jobs, or the Work with User Jobs display for user jobs, job queue entries and output queue entries. The QSYS2.JOB_INFO table function returns similar information.
Allowed environments: *ALL.
Positional parameters: 3.
Parameters
USER
User whose jobs to display
Selects user jobs by the user profile that started them. User jobs are interactive, submitted batch, communications-evoked batch, MRT batch and autostart jobs; system jobs, subsystem monitor jobs and spooling readers and writers are excluded.
Suggested / special values:
*, *ALL
*- Shows user jobs for the current user profile.
*ALL- Shows user jobs for all user profiles.
STATUS
Status of user jobs
Limits the list by job status: jobs on job queues, active jobs, jobs on output queues, or all of these.
Allowed values:
*ALL, *ACTIVE, *JOBQ, *OUTQ
*ALL- Shows user jobs in any status: on job queues, active, or on output queues.
*ACTIVE- Shows only active user jobs, including group jobs and system request jobs. Needed to show the Work with Signed-On Users display.
*JOBQ- Shows only user jobs that are on job queues.
*OUTQ- Shows only user jobs that have finished running but still have output on an output queue.
OUTPUT
Output
Chooses whether results are shown at the requesting workstation or printed with the job's spooled output.
Allowed values:
*, *PRINT
*- Shown for interactive jobs; printed with spooled output for non-interactive jobs.
*PRINT- Always printed with the job's spooled output.
JOBTYPE
Job type
Chooses which types of user jobs are shown: interactive, batch, or both.
Allowed values:
*ALL, *INTERACT, *BATCH
*ALL- Shows all user job types. When *ALL is specified, the ASTLVL parameter is ignored.
*INTERACT- Shows only interactive user jobs. Required for the Work with Signed-On Users display.
*BATCH- Shows only batch user jobs, including prestart, batch immediate and 36EE MRT jobs. Required for the Work with Jobs display.
ASTLVL
Assistance level
Selects which user interface is used.
Allowed values:
*PRV, *USRPRF, *BASIC, *INTERMED
*PRV- Uses the previously used user interface.
*USRPRF- Uses the interface set in your user profile; *ADVANCED in the profile is treated as *INTERMED.
*BASIC- Uses the Operational Assistant user interface.
*INTERMED- Uses the system user interface.
Examples
WRKUSRJOB USER(PGMR12)
Works with a list of jobs running under user profile PGMR12.
WRKUSRJOB USER(*ALL) STATUS(*JOBQ)
Works with a list of all the jobs on job queues.
Generated from os/cl/catalog/WRKUSRJOB.json and os/cl/help/WRKUSRJOB.json.