TAA Tools
MOVOLDOBJ       MOVE OLD OBJECTS                       TAALICH

The Move Old Objects  command moves objects to a  specific library that
have  not  been used  since  a specified  date.   A  list  of libraries
(including  generic)  may  be  specified.    This  allows  for  cleanup
functions to occur.

For example, rather  than delete the objects  that have not been  used,
you could move  them to a central library and retain  them for a period
(such as  three months).  If an object  is needed, you can quickly move
it back  to  the  original library  without  the need  to  restore  any
objects.   If there  was no need  for the object,  you just  delete the
library at the end of the retention period.

To  first determine  the  impact of  your command,  consider  using the
CHKOLDOBJ command.  It  provides a similar listing,  but will not  move
the objects.

A typical command would be:

           MOVOLDOBJ   LIB(LIBA LIBB) MOVTOLIB(xxx) USEDATE(nnnnnn)

The use  date would be entered  in job format.   Any objects  that have
not been used prior to the date specified would be moved.

If an  object has never been used  and the create date is  prior to the
specified date, the object is also moved.

Objects  which have been used (or  created) after the specified date do
not appear in the listing and are not moved.

If  LIB(*ALLUSR) is  requested,  the  TAATOOL and  TAASECURE  libraries
would  be implicitly  omitted along  with  the MOVTOLIB  library.   You
must have *ALLOBJ special authority to use *ALLUSR.

You must be authorized to move each object that meets the criteria.

MOVOLDOBJ escape messages you can monitor for
---------------------------------------------

      TAA9894    No objects exist to be processed.

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

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

   LIB           A  list of  libraries  (up to  40) to  be checked.   A
                 generic library name may be entered.

   MOVTOLIB      The library to  move the object to.   The same  object
                 name  and object  type to  be moved  must not  already
                 exist.

   USEDATE       The  date to compare  the objects 'last  use date' to.
                 The date  must  be entered  in  job format.    If  the
                 object has  never  been used  and the  create date  is
                 prior  to  the  date  specified,  the object  is  also
                 moved.

   OBJTYPE       The  object types to move.  A  list of up to 10 object
                 types may be entered.   The default is *ALL.   See the
                 command prompt for the complete list.

                 Some object  types such as *JRN appear  in the prompt,
                 but are invalid to move.

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

Certain  object types  such  as *JRN  cannot be  moved.   Messages will
exist in the spooled file for such cases.

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

The following TAA Tools must be on your system:

     CHKGENERC       Check generic
     CHKOBJ3         Check object 3
     EDTVAR          Edit variable
     EXTLST          Extract list
     EXTLST2         Extract list 2
     RTVDAT          Retrieve date
     RTVSYSVAL3      Retrieve system value 3
     SNDCOMPMSG      Send completion message
     SNDESCMSG       Send escape message
     SNDSTSMSG       Send status message

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

None, the tool is ready to use.

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

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

   MOVOLDOBJ     *CMD                   TAALICH       QATTCMD
   TAALICHC      *PGM       CLP         TAALICHC      QATTCL
   TAALICHR      *PGM       RPG         TAALICHR      QATTRPG
					

Added to TAA Productivity tools May 1, 1999


Home Page Up to Top