TAA Tools

The  End  Disconnected  Job   command  checks  for  jobs  in   the  DSC
(disconnected) state  and ends them  by default.  This  allows a simple
cleanup  solution prior  to a  backup.  An  option exists  to just list
those jobs that are in the disconnected state.

Disconnected  jobs can  have  a  detrimental  affect  on  both  regular
operations and system  functions such as 'backup' because  locks may be
held  on objects and records.   Disconnected jobs do  not appear on the
system WRKACTJOB nor the  TAA DSPACTJOB display  unless the F14 key  is

You must have *JOBCTL special authority to use ENDDSCJOB.

A typical command would be:


All jobs in the  disconnected (DSC) state would be  ended and a message
sent  for each  job describing the  action.   Prior to ending  the job,
the job is  set to  JOBPTY(10) to  ensure adequate  processing time  to
get the job out of the system.

If a job  goes active or is signed  off between the time  the WRKACTJOB
information  is  converted to  an  outfile and  processed,  the job  is

ENDDSCJOB escape messages you can monitor for

      TAA9896    Some failure occurred.

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

Command parameters                                    *CMD

   OPTION        Whether to end the job or just send a message.

                 *ENDJOB  is  the default  which will  end the  jobs in
                 the disconnected  (DSC) state and  send a message  for
                 each job ended.   If a job is to  be ended, the RUNPTY
                 of  the  job  is  degraded  (made  less important)  to
                 allow less overhead to  be caused by ENDJOB  function.

                 *MSG may be  specified to just send a  message for any
                 job in the disconnected (DSC) state.




The following TAA Tools must be on your system:

     CHKJOBCTL       Check *JOBCTL special authority
     CVTWRKACT       Convert WRKACTJOB to an outfile
     EDTVAR          Edit variable
     RSNLSTMSG       Resend last message
     RTVJOBA2        Retrieve job attributes 2
     SNDCOMPMSG      Send completion message
     SNDESCINF       Send escape information
     SNDESCMSG       Send escape message


None, the tool is ready to use.

Objects used by the tool

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

   ENDDSCJOB     *CMD                   TAAJOEI       QATTCMD
   TAAJOEIC      *PGM       CLP         TAAJOEIC      QATTCL

Added to TAA Productivity tools September 15, 2006

Home Page Up to Top