TAA Tools
DLYSBMJOB       DELAY SUBMITTED JOB                    TAAJOFA

The  Delay   Submit  Job  command   provides  a  simple   solution  for
submitting a  job to start  in a specified number  of seconds, minutes,
hours,  and days.   This  avoids the use  of SBMJOB  which requires the
SCDDATE and  SCDTIME parameters  to do  a  simple submit  after a  time
delay.   The DLYSBMJOB job would  be placed on the  QSYSNOMAX job queue
with  the generated  SCDDATE  and SCDTIME  parameters and  would submit
the requested job (and command) after the delay.

A typical command would be:

             DLYSBMJOB   JOB(xxx) CMD(yyy) DLYSEC(30)

A SBMJOB command would  be issued for the  DLYSBMJOB job and placed  on
the  QSYSNOMAX  job  queue  with  the  generated  SCDDATE  and  SCNTIME
parameters  (based based  on the DLY  value of  30 seconds).   When the
job  goes  active,  the  requested  job  name  and  command  would   be
submitted to the requested job queue.

No  message  is  sent  to  the  workstation   when  the  DLYSBMJOB  job
completes.   The standard normal or abnormal  job completion message is
sent to the workstation when the requested job completes.

A  combination of  DLYn parameter  may be  specified (all  delay values
are added together) such as:

             DLYSBMJOB   JOB(xxx) CMD(yyy) DLYSEC(30) DLYHR(1)

The delay time would be 1 hour and 30 seconds.

At least one of the DLYn parameters must be specified.

DLYSBMJOB escape messages you can monitor for
---------------------------------------------

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

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

   JOB           The name  of the job  to be  submitted after the  time
                 delay occurs.   The DLYSBMJOB job is  submitted to the
                 QSYSNOMAX  job queue  with  the generated  SCDDATE and
                 SCDTIME parameters  (based on  the DLY  value).   When
                 the  DLYSBMJOB  job  goes  active,  the  JOB  name  is
                 submitted as a job with the CMD value.

   CMD           The  command  to be  submitted.   F4  may  be  used to
                 prompt for the command parameters.   Up to 1000  bytes
                 may be specified.

   DLYSEC        The delay time in  seconds.  A number in  the range of
                 1  to 99999  may be  entered.   All DLYxxx  values are
                 added together.

   DLYMIN        The  delay time in minutes.   A number in the range of
                 1 to  99999 may  be entered.   All  DLYxxx values  are
                 added together.

   DLYHR         The delay time  in hours.  A number in  the range of 1
                 to  999 may be  entered.  All DLYxxx  values are added
                 together.

   DLYDAY        The delay time in  days.  A number  in the range of  1
                 to 999  may be entered.   All DLYxxx values  are added
                 together.

   JOBD          The  Job  Description  to be  used.    *USRPRF is  the
                 default meaning  the  job  description  specified  for
                 the current user profile.

                 A specific job description may be named.

                 The library  qualifier defaults  to blank.   If a  job
                 description  is named, a  blank qualifier  defaults to
                 *LIBL.   *LIBL, *CURLIB  or a specific  library may be
                 named.

   JOBQ          The Job  Queue  to  be used.    *JOBD is  the  default
                 meaning   the  job   queue   specified   in  the   job
                 description.

                 A specific job queue may be named.

                 The  library qualifier  defaults to  blank.  If  a job
                 description is named,  a blank  qualifier defaults  to
                 *LIBL.   *LIBL, *CURLIB or  a specific library  may be
                 named.


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

None.

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

The following TAA Tools must be on your system:

     ADDTIM          Add time
     CHKOBJ3         Check object 3
     CVTTIM          Convert time
     EDTVAR          Edit variable
     RSNLSTMSG       Resend last message
     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
   ------        ----    ---------      ----------    ----------

   DLYSBMJOB     *CMD                   TAAJOFA       QATTCMD
   TAAJOFAC      *PGM       CLP         TAAJOFAC      QATTCL
   TAAJOFAC2     *PGM       CLP         TAAJOFAC2     QATTCL
					

Added to TAA Productivity tools October 15, 2009


Home Page Up to Top