TAA Tools

The Display Empty Data  Queue command displays one or  more data queues
that have  no entries.   A flag may  be set if  the data queue  has not
been  changed (such  as not  having received  an entry)  in the  last n
days.  An  option exists to  list all data queues.   DSPEMTDTAQ can  be
helpful in cleaning up unused data queues.

You  must have  *ALLOBJ special  authority to  use a  library  value of

A typical command would be:


All  data queues in user  libraries that do not  have any entries would
be listed.   Any data  queues that have  not been changed  in the  last
100 days would be flagged.

DSPEMTDTAQ escape messages you can monitor for

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

DSPEMTDTAQ Command parameters                         *CMD

   DTAQ          The  qualified  name  of  the  data  queue  to  be  be
                 processed.   A single  data queue, a  generic name, or
                 the special value *ALL may be entered.

                 The library  value  defaults  to *LIBL.    A  specific
                 library, *CURLIB,  *USRLIBL, *ALL,  or *ALLUSR may  be

   FLAGDAYS      The number  of days to  flag the data queue  if it has
                 not  been  changed.   The  default  is 60  days.   The
                 value must be in a range of 9-999.

                 A data  queue is  considered  changed if  an entry  is
                 sent to  the queue.   Using a value provides  a better
                 indication of what is being used.

   ALLDTAQ       Whether  to  list all  data queues  regardless  of the
                 number of entries.

                 *NO is the  default to list only  data queues with  no

                 *YES may be specified to list all data queues.

   OUTPUT        How  to output  the  results.   *  is  the default  to
                 display  the spooled  file if  the command  is entered
                 interactively.  The spooled  file is deleted after  it
                 is displayed.

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


You  must  have *ALLOBJ  special authority  to use  a library  value of


The following TAA Tools must be on your system:

     ADDDAT2         Add date 2
     CHKALLOBJ       Check *ALLOBJ special authority
     EDTVAR          Edit variable
     RTVDTAQD        Retrieve data queue description
     RTVSYSVAL3      Retrieve system value 3
     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
   ------        ----    ---------      ----------    ----------

   DSPEMTDTAQ    *CMD                   TAADTQT       QATTCMD
   TAADTQTC      *PGM       CLP         TAADTQTC      QATTCL
   TAADTQTR      *PGM       RPG         TAADTQTR      QATTRPG

Added to TAA Productivity tools October 15, 2010

Home Page Up to Top