TAA Tools
WRKJOBSTS       WORK JOB STATUS                        TAAJOEO

The Work Job Status  command provides a work display or  listing of all
jobs in  one or more  named status values such  as RUN or  DSC (as seen
on  WRKACTJOB).  The  display has a  similar layout and  options as the
WRKACTJOB display.  The jobs  appear in job number order as  opposed to
the subsystem sequence used by WRKACTJOB.

You must have *JOBCTL special authority to use WRKJOBSTS.

A typical command would be:

             WRKJOBSTS   STATUS(DSC)

All jobs in a disconnected status would be displayed.

WRKJOBSTS escape messages you can monitor for
---------------------------------------------

      TAA9893    No jobs exist for the requested status and
                    selection criteria

Escape messages from based on functions will be re-sent.

WRKJOBSTS Command parameters                          *CMD
----------------------------

   STATUS        The status  of jobs to  be displayed or listed.   This
                 is  a required  parameter.   Use the  command prompter
                 for a full list of the values.

                 *ALL  may  be   used,  but   WRKACTJOB  is   generally
                 preferable.

   SBS           The subsystem  to limit the search  for.  *ALL  is the
                 default  for  all subsystems.    A  specific subsystem
                 may be named to limit the search.

   JOB           The job or generic job  name to limit the search  for.
                 *ALL is the default  for all jobs.  A  specific job or
                 a generic  job name may be named  to limit the search.

   USER          The  user  or generic  user name  to limit  the search
                 for.  *ALL is  the default for all users.   A specific
                 user  or a  generic  name  may be  used  to limit  the
                 search.

   OUTPUT        How  to  output the  results.    * is  the  default to
                 provide a  work  display  if the  command  is  entered
                 interactively.

                 If  the  command is  entered  in  batch or  *PRINT  is
                 specified, a spooled file is output.


Restrictions
------------

You must have *JOBCTL special authority to use WRKJOBSTS.

Prerequisites
-------------

The following TAA Tools must be on your system:

     ADJVAR          Adjust variable
     CHKJOBCTL       Check *JOBCTL special authority
     CVTWRKACT       Convert WRKACTJOB
     DSPERRMSG       Display error message
     EXTLST2         Extract list 2
     RTVJOBA2        Retrieve job attributes 2
     RTVSYSVAL3      Retrieve system value 3
     SNDCOMPMSG      Send completion message
     SNDESCINF       Send escape information
     SNDESCMSG       Send escape message

Implementation
--------------

None, the tool is ready to use.

Objects used by the tool
------------------------

   Object        Type    Attribute      Src member    Src file
   ------        ----    ---------      ----------    ----------

   WRKJOBSTS     *CMD                   TAAJOEO       QATTCMD
   TAAJOEOC      *PGM       CLP         TAAJOEOC      QATTCL
   TAAJOEOC2     *PGM       CLP         TAAJOEOC2     QATTCL
   TAAJOEOR      *PGM       RPG         TAAJOEOR      QATTRPG
   TAAJOEOD      *FILE      DSPF        TAAJOEOD      QATTDDS
					

Added to TAA Productivity tools August 1, 2008


Home Page Up to Top