TAA Tools
DLYPWRDWN       DELAY POWER DOWN                       TAASYSN

The Delay Power Down  command allows you to power down  the system when
all work  in a named  subsystem is complete.   If the  subsystem is not
active, TAA9891 is sent as an escape message.

A typical command would be entered as:

            DLYPWRDWN

               which defaults to

            DLYPWRDWN   SBS(QBATCH) JOBQ(QINTER)

A  batch  job by  the name  of DLYPWRDWN  is  submitted which  wakes up
every 15 minutes  to check if  any remaining work  exists in the  named
subsystem.   If no jobs are  active, the subsystem waits  5 seconds and
then checks  again to determine if no activity  exists.  If there is no
activity, PWRDWNSYS *IMMED is used.

The DLYPWRDWN  command can  be  helpful when  batch jobs  submit  other
batch jobs or when  the batch subsystem allows for  multiple jobs to be
active.   When  this occurs it  can be  awkward to enter  the PWRDWNSYS
command so that it will only  execute when no other batch work  exists.

You must have *JOBCTL to  use DLYPWRDWN.  You must submit the  job to a
job queue  that is attached to  a subsystem other than the  one you are
checking for active work in.

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

   SBS           The  subsystem to be checked  for active jobs.  QBATCH
                 is the default.

   JOBQ          The qualified name of  the job queue to use  to submit
                 the DLYPWRDWN  job.  QINTER  is the default.   The job
                 queue  must be  attached to  a subsystem  that differs
                 from the one named in the SBS parameter.

   RESTART       A *YES/*NO  value for  whether  the system  should  be
                 restarted after  power down.   This is the  same value
                 as  on  the  system  PWRDWNSYS  command  and  is  just
                 passed to the system command.

   IPLSRC        A value  that describes  where  the system  should  be
                 IPLed from.   The default  is *PANEL.   The values  A,
                 B, or  D may also be entered.   This is the same value
                 as  on  the  system  PWRDWNSYS  command  and  is  just
                 passed to the system command.

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

You must have *JOBCTL special authority to use the command.

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

The following TAA Tools must be on your system:

     RTVJOBSTRA      Retrieve job start attributes
     RTVNBRACT       Retrieve number active
     RTVSPCAUT       Retrieve special authority
     SNDCOMPMSG      Send completion message
     SNDESCMSG       Send escape message

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

None, the tool is ready to use.

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

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

   DLYPWRDWN     *CMD                   TAASYSN       QATTCMD
   TAASYSNC      *PGM       CLP         TAASYSNC      QATTCL
   TAASYSNC2     *PGM       CLP         TAASYSNC2     QATTCL
					

Added to TAA Productivity tools May 1, 1996


Home Page Up to Top