TAA Tools
CMPOBJSEC2      COMPARE OBJECT SECURITY 2              TAASEHB

The Compare  Object  Security 2  command allows  a  comparison of  one,
generic,  or all  objects in  a  library to  a specific  object.   This
allows  a determination  if all  security is  being handled identically
for a set of objects.   A summary spooled file is output with  one line
for  each object checked.   Detail  spooled files  will exist  for each
object where the security differs.

The checking includes:

      - Same ownership
      - Same authorization list
      - Same users authorized
      - Same authority to individual users
      - If a *PGM object is compared to another *PGM object,
          the USRPRF and USEADPAUT attributes must be the same

You must have *ALLOBJ special authority to use CMPOBJSEC2.

The  object to be compared from  will be bypassed if  it also exists in
the list  of objects to  compare to  (such as  a generic  name or  when
processing all objects).

A typical command would be:

             CMPOBJSEC2   FROMOBJ(xxx) FROMTYPE(*yyy)
                            TOOBJ(*ALL)

By default,  all objects in  the library  where the From  object exists
would be compared to the From object.

A summary  listing would be output along  with individual spooled files
for any object with different security.

CMPOBJSEC2 escape messages you can monitor for
----------------------------------------------

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

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

   FROMOBJ       The qualified  name of  the  object to  compare  from.
                 The  library value  defaults  to  *LIBL.   A  specific
                 library or *CURLIB may also be used.

                 The object  will be bypassed if it  also exists in the
                 list  of  objects to  compare  to (such  as  a generic
                 name  or when  processing  all objects)  specified  by
                 the To object parameter.

   FROMTYPE      The object type  of the From object.   Use the command
                 prompter for the list of supported values.

   TOOBJ         The  qualified name  of the object  to compare  to.  A
                 single object,  a  generic  object, or  *ALL  for  all
                 objects may be specified.

                 The  library value  defaults to  *FROMOBJ meaning  the
                 library  where  the From  object exists.    A specific
                 library may also be named.

   TOTYPE        The object  type of  the To  object.   The default  is
                 *FROMTYP  meaning the  same object  type  as the  From
                 object  type.  *ALL  may be  specified for  all object
                 types.    Use the  command  prompter for  the  list of
                 individual supported values.

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

You must have *ALLOBJ special authority to use CMPOBJSEC2.

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

The following TAA Tools must be on your system:

     CHKALLOBJ       Check *ALLOBJ special authority
     CHKOBJ3         Check object 3
     CMPOBJSEC       Compare object security
     EDTVAR          Edit variable
     RSNALLMSG       Resend all messages
     RSNLSTMSG       Resend last message
     RTVSYSVAL3      Retrieve system value 3
     SNDCOMPMSG      Send completion message
     SNDESCINF       Send escape information
     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
   ------        ----    ---------      ----------    ----------

   CMPOBJSEC2    *CMD                   TAASEHB       QATTCMD
   TAASEHBC      *PGM       CLP         TAASEHBC      QATTCL
   TAASEHBR      *PGM       RPG         TAASEHBR      QATTRPG
					

Added to TAA Productivity tools June 30, 2007


Home Page Up to Top