TAA Tools
CRTDUPDTAQ      CREATE DUPLICATE DATA QUEUE            TAADTQG

The  Create Duplicate  Data  Queue  command  creates a  duplicate  data
queue  (the  system  command   CRTDUPOBJ  does  not).    Only  the  the
parameters for a standard type (non-DDM) data queue are duplicated.

A typical command would be:

             CRTDUPDTAQ    FROMDTAQ(xxx) TOLIB(yyy)

As with CRTDUPOBJ:

  **   You  can name a different library  and/or a different data queue
       name.

  **   You must  have  *OBJOPR, *READ,  and  *OBJMGT authority  to  the
       existing data queue to use CRTDUPDTAQ.

  **   The new data queue will be owned by the user of the command.

  **   Any existing authorities are copied to the new object.

If the  From Data Queue  has existing entries,  they are not  copied to
the new data queue.

The  TAA Tool RTVDTAQD which uses the  QMHQRDQD API is used to retrieve
the attributes of the existing data queue.

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

   FROMDTAQ      The qualified  file  name  of  the data  queue  to  be
                 duplicated.   The  library  value  defaults to  *LIBL.
                 *CURLIB may also be used.

   TOLIB         The library to create the new data queue in.

   TODTAQ        The  name  of the  new  data queue.    The  default is
                 *FROMDTAQ  meaning  the  same  name  as  the  FROMDTAQ
                 parameter.

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

  **   Only the attributes  associated with a *STD type  (non-DDM) data
       queue will be duplicated.

  **   You  must have  *OBJOPR,  *READ,  and *OBJMGT  authority  to the
       existing data queue to use CRTDUPDTAQ.

  **   The  new data queue  will be owned  by the user  of the command.
       Any existing authorities are copied to the new object.

  **   If the  From  Data  Queue has  existing  entries, they  are  not
       copied to the new data queue.

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

The following TAA Tools must be on your system:

     RTVDTAQD        Retrieve data queue description
     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
   ------        ----    ---------      ----------    ----------

   CRTDUPDTAQ    *CMD                   TAADTQG       QATTCMD
   TAADTQGC      *PGM       CLP         TAADTQGC      QATTCL
					

Added to TAA Productivity tools May 1, 1996


Home Page Up to Top