TAA Tools
MOVMNYOBJ       MOVE MANY OBJECTS               TAAOBJB

The MOVMNYOBJ command  allows you to  move multiple objects  and object
types from one library to another in a single command.

The  command is useful  for moving  a group  of related objects  into a
different library.

The  MOVOBJ  command  is used  internally  to  move each  object.   The
standard object type (*PGM, *FILE etc.) is used.

A typical command would be:

      MOVMNYOBJ        FROMLIB(TEST)
                       TOLIB(PRODUCTION)
                       LIST((PAYROLL *CMD)(PAYROLLC *PGM)(PAY99 *PGM) +
                         (PAYMSTP *FILE))

The command  would move four  objects of  three different object  types
from one library to another.

If  an  error occurs  during  processing (e.g.    the  object does  not
exist),  a diagnostic  message is sent  and the  command will continue.
This will normally allow you to  see the cause of the problem  although
in  some cases  the low  level messages  must  be reviewed.   When  all
objects  have been  processed  (and some  cannot be  moved),  an escape
message will  be sent  stating  the number  of  objects moved  and  the
number not moved.

Because this can be  a long running command, it should  be submitted to
batch.   However, there is a  restriction on how large  a command (3000
bytes)  can  be  submitted  to  batch.    Executing  a  large MOVMNYOBJ
command  interactively may  still  be  the best  solution  because  the
overhead to  process separately entered interactive  MOVOBJ commands is
more expensive in total.

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

   FROMLIB       The  library  in which  the  objects are  to  be moved
                 from.

   TOLIB         The library in which the  objects are to be moved  to.

   LIST          A double entry of up to 90 objects:

                    Object         The object to be moved.
                    Object type    The object type to be moved.

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

None.

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

The following TAA Tools must be on your system:

          EDTVAR        Edit variable
          EXTLST        Extract list
          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
   ------        -----      ---------      ----------     -----------

   MOVMNYOBJ     *CMD                      TAAOBJB        QATTCMD
   TAAOBJBC      *PGM          CLP         TAAOBJBC       QATTCL
					

Added to TAA Productivity tools April 1, 1995


Home Page Up to Top