TAA Tools
FNDRNMRSTM      FIND RENAMED RESTORE MEMBERS           TAARSTK

The Find  Renamed Restore Members  command outputs  a spooled file  for
any  members  found  that  have  a  name  ending  in 4  digits.    This
typically  occurs if a member has  been saved, deleted, re-created with
the same  name,  and then  restored.   One  or  more libraries  may  be
searched.  FNDRNMRSTM can assist you in cleaning up your system.

Because  accessing  many members  is  slow,  the  command may  best  be
submitted to batch.

A typical command would be:

             FNDRNMRSTM   LIB(*ALLUSR)

A listing  of all members that have a name  ending in 4 digits would be
output.   Not  every member  listed  may have  been  created by  a  RST
command.  You must review the list before taking any action.

Example of how the system creates a member name ending in 4 digits
------------------------------------------------------------------

You can create such a situation by performing the following steps:

  **   CRTPF xxx/FILEX RCDLEN(50) MAXMBRS(10)

  **   ADDPFM xxx/FILEX MBR(MBRA)

  **   SAVOBJ xxx/FILEX ...  /* Such as to a SAVF */

  **   RMVM xxx/FILEX MBR(MBRA)

  **   ADDPFM xxx/FILEX MBR(MBRA)

  **   RSTOBJ xxx/FILEX ...  MBROPT(*MATCH) ALWOBJDIF(*ALL)

The  RSTOBJ command  senses that  the  member create  dates differ  and
renames the member being restored to MBRA0001.

FNDRNMRSTF escape messages you can monitor for
----------------------------------------------

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

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

   LIB           Specifies  1  to  300  libraries  or  generic  library
                 names to be searched.

                 The special  value *USRLIBL  may be  used to  describe
                 all user libraries  on the current library list.   The
                 current  library  is also  considered  to  be part  of
                 *USRLIBL.

                 The  special  value  *ALL  may  be  used  to  mean all
                 libraries.   You must  have *ALLOBJ  authority to  use
                 *ALL.

                 The  special value  *ALLUSR may  be used  to  mean all
                 user  libraries.  These  are the  same libraries saved
                 by SAVLIB LIB(*ALLUSR).   For  a full definition,  see
                 the SAVLIB  prompt.  You  must have  *ALLOBJ authority
                 to use *ALLUSR.

   FILE          The  file  to  be  processed.    The default  is  *ALL
                 meaning all files will be  processed.  A generic  name
                 or a specific file name may be entered.

   OMITLIBS      A  list of  up  to 300  libraries  or generic  library
                 names to be omitted.

                 The  omit  function  takes  precedence  over  the  LIB
                 parameter.       If    you   specify    LIB(ABC)   and
                 OMITLIBS(AB*),  the ABC  library  files  will  not  be
                 output.

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

You  must   have  *ALLOBJ  special   authority  to  use   LIB(*ALL)  or
LIB(*ALLUSR).

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

The following TAA Tools must be on your system:

     CVTMBRD         Convert member description
     EDTVAR          Edit variable
     EXTLST2         Extract list
     RTVSYSVAL3      Retrieve system value 3
     SNDCOMPMSG      Send completion message
     SNDESCINF       Send escape information
     SNDSTSCNT       Send status count

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

None, the tool is ready to use.

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

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

   FNDRNMRSTM    *CMD                   TAARSTK       QATTCMD
   TAARSTKC      *PGM       CLP         TAARSTKC      QATTCL
   TAARSTKR      *PGM       RPG         TAARSTKR      QATTRPG
					

Added to TAA Productivity tools November 15, 2005


Home Page Up to Top