TAA Tools
CHGOBJOWN2      CHANGE OBJECT OWNER 2                  TAASEEG

The Change Object  Owner 2 command  is similar to the  system CHGOBJOWN
command  except that  generically named  objects  and all  object types
can  be  changed  with  a single  command.    This  simplifies changing
ownership of generic objects.

You  must  have  *ALLOBJ   and  *SECADM  special  authorities  to   use
CHGOBJOWN2.

A typical command would be:

           CHGOBJOWN2   OBJ(LIB1/ABC*) OBJTYPE(*ALL) NEWOWN(JONES)

All  objects  with  the generic  name  ABC  in  LIB1 would  have  their
ownership changed to the JONES profile.

Messages  would exist  for  each object  that was  considered.   If the
object is already owned  by the NEWOWN  user profile, no change  occurs
and  an  informational message  is  sent.    If  an error  occurs,  the
command  will complete by changing  as many objects as  it can and then
send an escape message.

CHGOBJOWN2 escape messages you can monitor for
----------------------------------------------

      TAA9894    Some error occurred.  See low level messages.

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

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

   OBJ           The qualified  name of  the object.   A  generic  name
                 may be used  or the special  value *ALL.   The library
                 value defaults  to *LIBL.   *CURLIB may also  be used.

   OBJTYPE       The   object  type  to  be   changed.    *ALL  may  be
                 specified to  change all  object  types.   All of  the
                 values supported  by CHGOBJOWN are provided.   Use the
                 prompter for the full list.

   NEWOWN        The new owner name.

   CUROWNAUT     Whether  to  retain  the  current  owner's  authority.
                 The default is  *REVOKE to revoke  all of the  current
                 owner's authority.   This is  not considered  unless a
                 change  occurred  (a  change  will  not  occur if  the
                 existing  owner  is  the  same  as  the  NEWOWN   user
                 profile).

                 *SAME  may  be  specified to  retain  the  old  owner'
                 authority.

   OBJATR        The attribute  of the objects to be  changed.  *ALL is
                 the default.

                 A  specific  attribute  such  as DSPF  or  RPG  may be
                 entered to  change  only the  object types  that  have
                 the specific attribute.

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

You  must   have  *ALLOBJ  and  *SECADM  special   authorities  to  use
CHGOBJOWN2.

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

The following TAA Tools must be on your system:

     CHKALLOBJ       Check *ALLOBJ special authority
     CHKSECADM       Check *SECADM special authority
     EDTVAR          Edit variable
     RTVOBJLST       Retrieve object list
     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
   ------        ----    ---------      ----------    ----------

   CHGOBJOWN2    *CMD                   TAASEEG       QATTCMD
   TAASEEGC      *PGM       CLP         TAASEEGC      QATTCL
					

Added to TAA Productivity tools May 1, 2000


Home Page Up to Top