CHKACTJOB       CHECK ACTIVE JOB                       TAAJOEL

 The Check Active  Job command determines  whether a job or  generic job
 name is  active.  This  can be helpful  in determining if  a server job
 is  active.   TAA9893 is  sent as  an escape  message if  the specified
 parameters do not find a job.

 *JOBCTL authority is required to use CHKACTJOB.

 A typical command would be:

              CHKACTJOB     JOB(QFTP*)
              MONMSG        MSGID(TAA9893) EXEC(DO) /* Not active */
                            /* Your code to handle not active */
              ENDDO         /* Not active */

 CHKACTJOB escape messages you can monitor for
 ---------------------------------------------

       TAA9893    No jobs are active

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

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

    JOB           The job or generic job name to check for.

    SBS           The subsystem where  the job exists.   The default  is
                  *ALL for all subsystems.

    JOBTYPE       The type  of job to be  checked.  *ALL  is the default
                  for all types of jobs.

                  Other entries that may be made are:

                        *BCH     Batch jobs
                        *INT     Interactive jobs
                        *MON     Subsystem monitor jobs
                        *RDR     Reader jobs
                        *SYS     System jobs
                        *WTR     Writer jobs


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

 None.

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

 The following TAA Tools must be on your system:

      CHKJOBCTL       Check *JOBCTL special authority
      CVTWRKACT       Convert work active
      EDTVAR          Edit variable
      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
    ------        ----    ---------      ----------    ----------

    CHKACTJOB     *CMD                   TAAJOEL       QATTCMD
    TAAJOELC      *PGM       CLP         TAAJOELC      QATTCL

Added to TAA Productivity Tools March 26, 2007


Home Page

Powered by AS/400Powered by AS/400 Last modified on July 15, 2010 © 1995, 2010 - Jim Sloan, Inc.