TAA Tools
MOVCRTDAT       MOVE BY CREATE DATE                    TAAOBMM

The Move  by  Create Date  command moves  objects from  one library  to
another based  on a range of object creation  dates specified.  Because
ACTION(*CHECK)  is  the default,  no objects  are  moved and  a listing
describes those that  would be moved.   If ACTION(*MOVE) is  specified,
the objects are moved.

You must have *ALLOBJ special authority to use MOVCRTDAT.

A typical command would be:

             MOVCRTDAT  FROMLIB(xxx) TOLIB(yyy)
                          CRTDATLOW(dddddd) CRTDATHIGH(dddddd)

Because the default  is ACTION(*CHECK), no objects would  be moved, but
the  listing  would  describe  those  that  would  be  moved  by  using
ACTION(*MOVE).

MOVCRTDAT escape messages you can monitor for
---------------------------------------------

      TAA9891    No objects found to meet selection criteria

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

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

   FROMLIB       The library containing the objects to be moved.

   TOLIB         The library where the objects should be moved to.

   CRTDATLOW     The low range  of the  create date of  the objects  to
                 be moved.   The date should be entered  in job format.
                 The   special  value  *FIRST  may   be  used  for  the
                 earliest create date.

   CRTDATHIGH    The high range of  the create date  of the objects  to
                 be moved.  The  date should be entered in  job format.
                 The  special value  *LAST  may  be used  for  the most
                 current create date.

   OBJ           The  name or generic name of  the objects to be moved.
                 *ALL  is the  default  for  all objects  in  the  From
                 library.

   OBJTYPE       The object type  of the objects to be  moved.  *ALL is
                 the   default  for  all  object   types  in  the  From
                 library.   Use  the  prompter  to  see  the  supported
                 values.

   ACTION        The action to be performed.

                 *CHECK is the  default.  It will  describe the objects
                 that  would be  moved if ACTION(*MOVE)  was specified.

                 *MOVE may be specified to move the objects.

   OUTPUT        How to  output  the results.    * is  the  default  to
                 display the  spooled file  if the  command is  entered
                 interactively.   If the  display is ended  with F3/F12
                 or  the Enter key,  the spooled file  is deleted after
                 it is  displayed.   To  retain the  spooled file,  you
                 may use  the the System Request  'Cancel' function and
                 the spooled file will exist in a HLD status.

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


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

You must have *ALLOBJ special authority to use MOVCRTDAT.

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

The following TAA Tools must be on your system:

     CHKALLOBJ       Check *ALLOBJ special authority
     CHKOBJ3         Check object 3
     CVTOBJDAT       Convert object date
     CVTOBJD4        Convert object description 4
     RSNLSTMSG       Resend last message
     RTVSYSVAL3      Retrieve system value 3
     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
   ------        ----    ---------      ----------    ----------

   MOVCRTDAT     *CMD                   TAAOBMM       QATTCMD
   TAAOBMMC      *PGM       CLP         TAAOBMMC      QATTCL
   TAAOBMMR      *PGM       RPG         TAAOBMMR      QATTRPG
					

Added to TAA Productivity tools April 15, 2013


Home Page Up to Top