TAA Tools
CMPCLS          COMPARE CLASS                          TAACLSB

The Compare  Class command  compares the  CRTCLS command parameters  of
two Class objects.  A spooled file is created of any differences.

The major attributes which are not compared are:

      - Owner
      - Authorizations
      - Text description
      - Create date and time

A typical command would be:

             CMPCLS    FROMCLS(xxx) TOCLS(yyy)

A spooled  file would be created with any  differences shown.  The text
descriptions of the two objects are not compared.

An  option exists to send  an escape message if  differences exist.  An
option exists to delete the spooled file if no differences exist.

The owner and authorizations are not compared.

Maximum temporary storage

The CRTCLS MAXTMPSTG  command allows the  entry of a maximum  temporary
storage value  in kilobytes.   The value is  rounded up if  required to
fit internal storage requirements.

DSPCLS (system command) shows the value in megabytes.

CMPCLS  uses  the  RTVCLSA  TAA  command  which  returns  the value  in
kilobytes and therefore kilobytes are shown in the output.

CMPCLS  escape messages you can monitor for

      TAA9895    Differences exist (optional based on ESCAPE parm)

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

Command parameters                                    *CMD

   FROMCLS       The qualified name of the  From Class to be  compared.
                 The  library value  defaults  to *LIBL.   *CURLIB  may
                 also be used.

   TOCLS         The  qualified name  of the To  Class to  be compared.
                 The default is  *FROMCLS meaning the  same Class  name
                 as  in  the  FROMCLS parameter.    The  library  value
                 defaults to  blanks.  If no name  is entered, *LIBL is
                 assumed.  *CURLIB may also be used.

   ESCAPE        Whether  to  send  an  escape  message  if differences
                 exist.  The  default is *NO  which means a  completion
                 message is sent.

                 *YES may  be specified to send  TAA9895 if differences

   DLTSPLF       Whether  to delete  the spooled  file if there  are no
                 differences.    The  default   is  *YES  meaning   the
                 spooled file is  deleted if no differences  are found.
                 The  spooled file  is  always retained  if differences

                 *NO may be  specified to  ensure a  spooled file  will
                 exist  regardless  of  whether  differences  exist  or




The following TAA Tools must be on your system:

     CHKOBJ3         Check object 3
     EDTVAR          Edit variable
     RTVCLSA         Retrieve class attributes
     RTVSYSVAL3      Retrieve system value 3
     SNDCOMPMSG      Send completion message
     SNDESCMSG       Send escape message


None, the tool is ready to use.

Objects used by the tool

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

   CMPCLS        *CMD                   TAACLSB       QATTCMD
   TAACLSBC      *PGM       CLP         TAACLSBC      QATTCL
   TAACLSBR      *PGM       RPG         TAACLSBR      QATTRPG

Added to TAA Productivity tools July 1, 1999

Home Page Up to Top